Error message while accessing the Microsoft Dymamics CRM 2011 website after configuring the Internet Facing Deployment:
The request failed with the HTTP 401: Unauthorized
Also, you receive the following errors while attempting to authenticate to Microsoft Dynamics CRM 2011 using IFD and the 2007 (CRM 4.0 - /MSCRMServices/2007/) SDK endpoints.
System.Net.WebException: The request failed with HTTP status 401: Unauthorized.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at <SDKProject>.CrmSdk.Discovery.CrmDiscoveryService.Execute(Request Request)....
Additionally, you may see the following error (401.2 Unauthorized) in the IIS logs for the Microsoft Dynamics CRM Website:
POST /MSCRMServices/2007/SPLA/CrmDiscoveryService.asmx - 443 - <ClientRequestingIpAddress> Mozilla/4.0+(compatible;+MSIE+6.0;+MS+Web+Services+Client+Protocol+2.0.50727.4963) 401 2 5 29
The request failed with the HTTP 401: Unauthorized
Also, you receive the following errors while attempting to authenticate to Microsoft Dynamics CRM 2011 using IFD and the 2007 (CRM 4.0 - /MSCRMServices/2007/) SDK endpoints.
System.Net.WebException: The request failed with HTTP status 401: Unauthorized.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at <SDKProject>.CrmSdk.Discovery.CrmDiscoveryService.Execute(Request Request)....
Additionally, you may see the following error (401.2 Unauthorized) in the IIS logs for the Microsoft Dynamics CRM Website:
POST /MSCRMServices/2007/SPLA/CrmDiscoveryService.asmx - 443 - <ClientRequestingIpAddress> Mozilla/4.0+(compatible;+MSIE+6.0;+MS+Web+Services+Client+Protocol+2.0.50727.4963) 401 2 5 29