System.Net.WebException the request failed with HTTP status 401: Unauthorized.” Source=”System.Web.Services”
Views (333)
Hi,
I was gettng this error when trying to call the crm’s webservice from my asp.net page
The resolution for this is putting the following code in the web.conig
i.e. enable impersonation and deny anonymous access
<authentication mode=”Windows” />
<identity impersonate=”true”/>
<authorization>
<!–Deny all unauthenticated users–>
<deny users=”?”/>
</authorization>
Bye
This was originally posted here.

Like
Report
*This post is locked for comments