Sandip's Programming Zen

An attempt to share tech/coding experiences

ASP.NET Webservices: “The request failed with HTTP status 401: Access Denied.” Error

leave a comment »

I have faced this issue today and thought it would be useful to share.

We can solve this issue in following way.

In IIS 7:

1. Right Click on Authentication feature and select Edit Feature.

2. Right Click on Anonymous Authentication and select Edit.

3. Either put IUSR_XXX account in Specific User or Just select Application Pool Identity (whatever works in your case).

IIS7


In IIS 5/6:

1. Click “Start” – “Run” – Type “inetmgr” and press “Ok” or “Enter” Key

2. IIS Control panel opens.

3. Expand the appropriate nodes and navigate to the virtual directory of your Web Service Application.

4. Select the Virtual directory, Right Click and select “Properties”

5. Switch to the “Directory Security” Tab and then Click “Edit”.

6. Check the “Anonymous Access” CheckBox.

7. Click “Ok” twice to exit.

This should solve the issue.

Advertisements

Written by Sandip

November 27, 2008 at 2:10 pm

Posted in .Net, Troubleshooting

Tagged with , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: