- If you get the 404 error while accessing the service URL, then it might be because WCF is not registered. Consider registering Windows Communication Foundation (WCF) with IIS. To register WCF If IIS has installed after .net framework then use below options
- Open command prompt and set the directory path to WCF directory, which is usually, C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation.
- Run the following command: ServiceModelReg.exe /i /x Refer tech-net link for more detailed information.
- If you face the error shown in below image after registering the WCF then check the below points to get rid of the error:
- Check that the windows authentication has enabled for AIF virtual directory.
- Following should be the binding section of web.config file available in virtual directory physical path:
- Enabled providers for virtual directory are NTLM and Negotiate both:
I was able to make the web service work after these troubleshooting steps. Hope these might be a help to anyone.
No comments:
Post a Comment