Web Service + Anon Access, but getting 401 Access Denied Error
- From: Alex Washtell via .NET 247 <anonymous@xxxxxxxxxxxxx>
- Date: Tue, 05 Apr 2005 08:24:49 -0700
I have a simple webservice that just returns a string. The security for this is set to windows authentication in IIS (XP Professional) and anonymous access is also turned on.
When I access the webservice from IE there is no problem, it returns the string fine. However, when I create a simple console application to use this service and output the string, I get a 401 Access Denied error.
I have tried the method of setting the default credentials, but this isn't suitable (I can explain why but is not relevant), and the key issue here is that anonymos access IS enabled, so I shouldn't have to set the credentials anyway, surely?
This was working fine until I came back to it after a couple of weeks, and I am unsure what I could have changed in my settings in Windows. As far as I can see this appears to be an IIS problem, rather than an application one.
Any help is greatly appreciated, thanks,
Alex
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>Nz74j70aE0SfGiHcLfpbqw==</Id>
.
- Follow-Ups:
- Re: Web Service + Anon Access, but getting 401 Access Denied Error
- From: Mauro Ottaviani [MSFT]
- Re: Web Service + Anon Access, but getting 401 Access Denied Error
- Prev by Date: Global.asax, Multiple VirtualDirectory
- Next by Date: Re: Web Service + Anon Access, but getting 401 Access Denied Error
- Previous by thread: Global.asax, Multiple VirtualDirectory
- Next by thread: Re: Web Service + Anon Access, but getting 401 Access Denied Error
- Index(es):
Relevant Pages
|