M
mike
I have an ASP.NET 3.5 web site which calls a ASP.NET web service
I am required (don't ask) to only allow authenticated users make web service
calls.
As in;
<authorization>
<deny users="?" />
<!--<allow roles="submitter"/>-->
<deny users="*" />
</authorization>
The application does not use Windows authentication but Forms authentication.
I'm getting a 401: Unauthorized error when trying to make web service calls.
the web service Web.config has these settings as well as the above
<authentication mode="Windows"/>
<identity impersonate="true" />
I am setting the Credentials on my web service the following way
CredentialCache cache = new CredentialCache();
cache.Add(new Uri(service.Url), "Basic", new
NetworkCredential(LoggedInUser.Login, LoggedInUser.Password));
service.Credentials = cache;
service.PreAuthenticate = true;
The IIS Directory Securty setting are set to allow Anonymous access and
"Integrated Windows" authentication for the web services.
what am I doing wrong here?
thanks
mike
I am required (don't ask) to only allow authenticated users make web service
calls.
As in;
<authorization>
<deny users="?" />
<!--<allow roles="submitter"/>-->
<deny users="*" />
</authorization>
The application does not use Windows authentication but Forms authentication.
I'm getting a 401: Unauthorized error when trying to make web service calls.
the web service Web.config has these settings as well as the above
<authentication mode="Windows"/>
<identity impersonate="true" />
I am setting the Credentials on my web service the following way
CredentialCache cache = new CredentialCache();
cache.Add(new Uri(service.Url), "Basic", new
NetworkCredential(LoggedInUser.Login, LoggedInUser.Password));
service.Credentials = cache;
service.PreAuthenticate = true;
The IIS Directory Securty setting are set to allow Anonymous access and
"Integrated Windows" authentication for the web services.
what am I doing wrong here?
thanks
mike