Kyle
Kyle

Reputation: 947

Error 401 for my ASP.NET app on IIS 6.0

I've just wrote a legacy app on IIS 6.0 (.NET 1.0, don't even ask why!). One of the requirements is to have "Integrated Windows Authentication" disabled on the Virtual directory.

http://localhost/test.html

When I disable that, I get a error 401.1 on the IIS root's test.html, which consists of "Hello World"

You are not authorized to view this page You do not have permission to

view this directory or page using the credentials that you supplied.

Please try the following:

•Contact the Web site administrator if you believe you should be able to view this directory or page. •Click the Refresh button to try again with different credentials. HTTP Error 401.1 - Unauthorized: Access is denied due to invalid credentials. Internet Information Services (IIS)


When IWM is enabled, the website works like a gem.

Does anyone know what is the root cause? This doesn't appear to be an issue with my app since even the default test.html fails with authentication

Upvotes: 1

Views: 3273

Answers (2)

Kyle
Kyle

Reputation: 947

Issue was resolved with removing Guest and Anonymous restriction from the local security policy

Upvotes: 1

Rudi
Rudi

Reputation: 3228

You will most likely need to set the correct folder permissions for the 'Anonymous' user on the folder you are accessing.

http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/f594e137-e2da-4b22-ab58-f8edba938802.mspx?mfr=true

edit: this is the more relevant link: http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/9ded7af2-fcb7-4ed2-b007-e19f971f6e13.mspx?mfr=true

Upvotes: 1

Related Questions