The request failed with HTTP status 401: Access Denied

J

jdhavo

I have a webservice that allows all users to access it but am receiving
an access denied message.
IIS virtual directory for application is set to allow annonymous access
with windows authentication.
The annonymous user id is an active directory account
USPHC\COR089SAPDM.
I've entered the password in the password field and unchecked the allow
windows to control password checkbox.

When I change the user in the virtual directory to IUSR_XXXXXXXX, the
webservice works fine.
Here is the web.config for the webservice section.
<location path="WebService/User/pdmUsersV1R0.asmx">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
The everyone group is authorized for nt security to read/execute on the
folder.

Any help would be appreciated.
Thank you,
Clem
 
P

Pandurang Nayak

Anonymous users are usually used with the built-in IUSR anonymous account.
The account may have several other priveleges that you might have to find out
and manually set if you are using an AD account.

It is better to leave it with anonymous. If you are changing it for setting
the context for accessing some resource in your ASP code, you should consider
using .NET impersonation and not change the IIS account.

Regards,
Pandurang
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top