Authentication Error 401.2

Posted by priya2010 on Stack Overflow See other posts from Stack Overflow or by priya2010
Published on 2010-06-01T11:14:30Z Indexed on 2010/06/01 11:23 UTC
Read the original article Hit count: 414

Filed under:

I have an application buit partially in classic asp and in c#. The authentication used as

per the config file is windows. This is perfectly working.

Now I have to authenticate the users against active directory. (ie. if any AD users

requesting my application, it should authenticate the user (on login page load) and redirect

to the application home page instead of showing login page)

The login page is an asp page and I created an aspx page where the login.asp page will be

redirected during page load to autheticate with Active Directory. I hav e disabled anonymous

access in IIS and currently used only Integrated Windows Authentication. Also given

permission to "Authenticated Users" in Permissions.

While trying to access the login.asp page I am getting the following error.

You do not have permission to view this directory or page using the credentials that you

supplied because your Web browser is sending a WWW-Authenticate header field that the Web

server is not configured to accept.

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.2 - Unauthorized: Access is denied due to server configuration. Internet Information Services (IIS)

Kindly help me to fix this issue.

Thanks, Priya

© Stack Overflow or respective owner

Related posts about c#