IIS 7 and Above
Error message 401.2.: Unauthorized: Logon failed due to server config...
Last post Apr 02, 2013 12:07 PM by vashikarafath
Sep 30, 2008 08:49 PM|cosmin10|LINK
I migrated an application from IIS 6 to IIS7 and everything works except one thing.
We have a Download Manager that uses a WebService to connect to the site but for some reason it gives the following error:
" Error message 401.2.: Unauthorized: Logon failed due to server configuration Verify that you have permission to view this directory or page based on the credentials you supplied and the authentication methods enabled on the Web server. Contact
the Web server's administrator for additional assistance"
Looking at IIS logs it shows the following:
2008-09-30 18:46:03 XX.XX.XXX.XX POST /DataSite/FileList2.asmx - 80 - XX.XX.XXX.XX Mozilla/4.0+(compatible;+MSIE+6.0;+MS+Web+Services+Client+Protocol+2.0.50727.1434) 401 0 0 92
I checked all the possible permissions and compare with the ones in IIS6 where this is working but still no luck.
Anonymous Authentication is enabled for this application starting with the website down to all the virtual directories.
IIS 7.0 Problem
Sep 30, 2008 11:46 PM|ma_khan|LINK
401.2 means that your server and the browser are following 2 different authentication protocols.... are you entering any sort of credentials for accessing this resource???
Oct 01, 2008 12:14 AM|cosmin10|LINK
Oct 01, 2008 12:36 AM|ma_khan|LINK
I am not sure if IIS understand the authentication method you are using within your app... I would try and look in that direction ... 401.2 has got to do more with the authentication method used than just the permission on the resource...
Oct 07, 2008 11:36 AM|WenJun Zhang - MSFT|LINK
Please reproduce the error again and open event viewer to check if there is any logon failure of anonymous account in security log. If so, post the details here.
Oct 08, 2008 06:51 PM|cosmin10|LINK
Oct 08, 2008 06:57 PM|cosmin10|LINK
Jul 24, 2009 04:07 PM|bcross|LINK
im having the same issue however its only when i access the site via the IP. if i access by localhost, servername or url, it works fine.
Sep 03, 2009 06:13 PM|rzwirtz|LINK
I am having the same issue running an Asp.Net 2.0 site using Forms authentication. The issue only happens after the session has timed out and you attempt to access a resource in a secured folder. This has occured on both a development workstation running
the asp.net development server and on an IIS 6 server.
Apr 02, 2013 12:07 PM|vashikarafath|LINK
Im calling a webpage via VBS file through Task scheduler.I am getting 401.2 IIS error when the Task scheduler runs.
But when the webpage is called manually it is working fine with the iis status 200
please help me resolve it