web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / Nishant Rana’s Weblog / System.Net.WebException the...

System.Net.WebException the request failed with HTTP status 401: Unauthorized.” Source=”System.Web.Services”

Nishant Rana Profile Picture Nishant Rana 11,325 Microsoft Employee

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.

Comments

*This post is locked for comments