401 - Unauthorized: Access is denied due to invalid credentials
After installing MSCEP, enter http://Server2008/certsrv/mscep_admin in the browser.Enter correct user name and password in pop-up box. Windows 2008 keeps rejecting the correct user name and password. Browser displays error when clicked on cancel.
July 12th, 2007 8:44pm

Have you checked under authentication in IIS?
Free Windows Admin Tool Kit Click here and download it now
July 13th, 2007 2:55am

Didn't worked either.
July 13th, 2007 11:42am

Hello, Try to check the auth providers with this script in command prompt: cscript adsutil.vbs get w3svc/WebSite/root/NTAuthenticationProviders if you do not have NTLM, the add it with this script: cscript adsutil.vbs set w3svc/WebSite/root/NTAuthenticationProviders "NTLM" Of course, you should change the website element to your custom one. Maybe it solves your issue. Regards, Janos
Free Windows Admin Tool Kit Click here and download it now
July 16th, 2007 2:48am

To whoever this may help, this saved my life... IIS 7 was difficult for figuring out why i was getting the 401 - Unauthorized: Access is denied due to invalid credentials... until i did this... 1.) Open iis and select the website that is causing the 401 2.) Open the "Authentication" property under the "IIS" header 3.) Click the "Windows Authentication" item and click "Providers" 4.) For me the issue was that Negotiate was above NTLM. I assume that there was some kind of handshake going on behind the scenes, but i was never really authenticated. I moved the NTLM to the top most spot, and BAM that fixed it.
March 30th, 2010 11:20am

Hi jay-dubb, can't find that "Providers in "Windows Authentication" in IIS 7? I am using Windows 2008 Server.
Free Windows Admin Tool Kit Click here and download it now
May 9th, 2010 1:34am

To whoever this may help, this saved my life... IIS 7 was difficult for figuring out why i was getting the 401 - Unauthorized: Access is denied due to invalid credentials... until i did this... 1.) Open iis and select the website that is causing the 401 2.) Open the "Authentication" property under the "IIS" header 3.) Click the "Windows Authentication" item and click "Providers" 4.) For me the issue was that Negotiate was above NTLM. I assume that there was some kind of handshake going on behind the scenes, but i was never really authenticated. I moved the NTLM to the top most spot, and BAM that fixed it. You rock! This totally fixed me! Thank you for taking the time to post!
May 27th, 2010 2:43pm

Hi jay-dubb, can't find that "Providers in "Windows Authentication" in IIS 7? I am using Windows 2008 Server. Go to the site, click Authentication in the middle and then the middle frame has the authentication types. Click on Windows Authentication and then Providers appears under actions in the right frame.
Free Windows Admin Tool Kit Click here and download it now
May 27th, 2010 2:45pm

This must not apply to IIS 7.5 - there is no "Windows Authentication" item under "Authentication". There is a Providers icon under ASP.net. Is this what you mean?
July 9th, 2010 2:58pm

To whoever this may help, this saved my life... IIS 7 was difficult for figuring out why i was getting the 401 - Unauthorized: Access is denied due to invalid credentials... until i did this... 1.) Open iis and select the website that is causing the 401 2.) Open the "Authentication" property under the "IIS" header 3.) Click the "Windows Authentication" item and click "Providers" 4.) For me the issue was that Negotiate was above NTLM. I assume that there was some kind of handshake going on behind the scenes, but i was never really authenticated. I moved the NTLM to the top most spot, and BAM that fixed it. That fixed me as well. Thank you very much for posting this.
Free Windows Admin Tool Kit Click here and download it now
August 13th, 2010 10:50am

I'm running the Server 2008 IIS7 and can't find the Providers you talk about under the IIS Header. I do have a Providers in the ASP.NET. The main problem is that I'm having a issue that the IP Address works with no problem, but the DNS name does not want to pass the credential through to the server. I'm totally stuck on this problem. Sniffles
August 19th, 2010 1:14pm

Thanks for the suggestion about moving NTLM above Negotiate, jay-dubb - it was the cause of my problems, too, and so much time was wasted before I found the one page out of the first 40 Google results (this page) that identified it.
Free Windows Admin Tool Kit Click here and download it now
November 24th, 2010 4:55am

jdigap - I don't know if you found the answer to your problem (obviously it's some time ago now, but this being a public record of answers and all I figured I'd post suggestions for anyone else, too) - first you need to open the Authentication section. If you don't have a Windows Authentication entry under there you need to go into the Server Manager Roles and use Add Role Service on the IIS entry to add the Windows Authentication service. If Windows Authentication is listed, then you select the Windows Authentication option and over at the right hand side in IIS 7 there should be a Providers... link which you click to list the providers, and can change the order in there.
November 24th, 2010 5:01am

Thaks for the tip. This worked for me.
Free Windows Admin Tool Kit Click here and download it now
December 11th, 2010 6:59pm

Worked like charm..
December 13th, 2010 5:51am

Amazing!! This worked a treat for me too.
Free Windows Admin Tool Kit Click here and download it now
January 4th, 2011 10:15am

Unbelievable. I would have never found this if it weren't for you. Thanks!
January 11th, 2011 6:32pm

Jay-dubb, THANKYOU! If I could send you a virtual beer I would... I've lost so much time over that :(
Free Windows Admin Tool Kit Click here and download it now
February 5th, 2011 6:08am

I shared my wwwroot folder and I got this error message. The only reason why I would do a share folder is so that I was able to update the sit via network. Anyways been working on this issue for about 2 days. Then I came across this form and it fixed my problem. Thank you so much. :)
February 20th, 2011 11:00am

Excellent! I wish it was always this simple instead of trolling through hundreds of meaningless posts by people second guessing. Thanks a lot!Freelance IT consultant/developer
Free Windows Admin Tool Kit Click here and download it now
March 7th, 2011 3:56pm

None of the responses help me to solve the problem; here is how I solved it. My Problem started when I shared the folder. When I Enabled Windows Authentication It started giving me a Login Windows for User Name & Password, That was not desired by me so I disabled the Windows Authentication, in fact all of them expect the Anonymous Authentication, When Clicked “Edit“Anonymous Authentication it showed a user it was IUSR I gave full rights to IUSR for the subject folder and my website started working
March 22nd, 2011 3:23am

I'm running the Server 2008 IIS7 and can't find the Providers you talk about under the IIS Header. I do have a Providers in the ASP.NET. I am having the exact same issue. For the Action pane elements I only have advanced settings, no providers. I do also have a providers under asp.net that doesn't appear to be the same as the one for Windows Authentication. Did anyone ever figure out how to edit the providers in Windows Authentication?
Free Windows Admin Tool Kit Click here and download it now
March 23rd, 2011 4:33pm

try this.. it worked for me in IIS7. KB Article Link: http://support.microsoft.com/kb/215383 Check the NTAuthenticationProviders IIS metabase property, if it is set to default “Negotiate,NTLM” . C:\inetpub\AdminScripts>cscript adsutil.vbs get w3svc/NTAuthenticationProviders Set NTAuthenticationProviders IIS metabase property to “NTLM”. C:\inetpub\AdminScripts>cscript adsutil.vbs set w3svc/NTAuthenticationProviders "NTLM"
March 24th, 2011 5:21pm

Great!!! That worked for me too.
Free Windows Admin Tool Kit Click here and download it now
March 25th, 2011 11:48am

I'm running Windows Server 2008 R2 and IIS 7.5. I was receiving the same error and after messing around with it, this is what fixed it. In IIS, select the website you're having the issue with. In the IIS section, select 'Authentication'. Right click on Anonymous Authentication and select 'Edit' Check the 'Specified User' radio button and click on 'Set' I entered my username, password and password confirmation and click ok. This solved my problem and I hope it can help someone else. Cheers!
March 25th, 2011 10:47pm

For IIS 7.5, check out this article: http://support.microsoft.com/kb/950100 Issue 3: Error message when you try to open the Microsoft Dynamics CRM 4.0 Web application: "HTTP Error 401.2 – Unauthorized" To work around this problem, enable the Windows Authentication role service in the Web Server (IIS) role.
Free Windows Admin Tool Kit Click here and download it now
April 27th, 2011 7:28am

I was not able to find providers in IIS 7, but the command line utility worked like a charm!!! Thank you!!!
May 4th, 2011 3:41pm

To whoever this may help, this saved my life... IIS 7 was difficult for figuring out why i was getting the 401 - Unauthorized: Access is denied due to invalid credentials... until i did this... 1.) Open iis and select the website that is causing the 401 2.) Open the "Authentication" property under the "IIS" header 3.) Click the "Windows Authentication" item and click "Providers" 4.) For me the issue was that Negotiate was above NTLM. I assume that there was some kind of handshake going on behind the scenes, but i was never really authenticated. I moved the NTLM to the top most spot, and BAM that fixed it. You are a legend mate. Saved me heaps of headaches.
Free Windows Admin Tool Kit Click here and download it now
May 17th, 2011 9:48pm

To whoever this may help, this saved my life... IIS 7 was difficult for figuring out why i was getting the 401 - Unauthorized: Access is denied due to invalid credentials... until i did this... 1.) Open iis and select the website that is causing the 401 2.) Open the "Authentication" property under the "IIS" header 3.) Click the "Windows Authentication" item and click "Providers" 4.) For me the issue was that Negotiate was above NTLM. I assume that there was some kind of handshake going on behind the scenes, but i was never really authenticated. I moved the NTLM to the top most spot, and BAM that fixed it. You rocked!!!! It really fixed the issue.
June 1st, 2011 5:21am

To whoever this may help, this saved my life... IIS 7 was difficult for figuring out why i was getting the 401 - Unauthorized: Access is denied due to invalid credentials... until i did this... 1.) Open iis and select the website that is causing the 401 2.) Open the "Authentication" property under the "IIS" header 3.) Click the "Windows Authentication" item and click "Providers" 4.) For me the issue was that Negotiate was above NTLM. I assume that there was some kind of handshake going on behind the scenes, but i was never really authenticated. I moved the NTLM to the top most spot, and BAM that fixed it. Thank you so much! I faffed about for hours over this issue - I even thought about switching the providers out of desperation, but dismissed the idea for being too stupid!!!
Free Windows Admin Tool Kit Click here and download it now
June 3rd, 2011 10:52am

This did it for me! Good job with your post.
June 3rd, 2011 11:41am

Thanks a million.. this works for me!
Free Windows Admin Tool Kit Click here and download it now
July 13th, 2011 5:07pm

Thanks a lot that did it for me too. I spent days trying to figure this out.
July 19th, 2011 1:06pm

Thanks a lot. This helped.
Free Windows Admin Tool Kit Click here and download it now
July 29th, 2011 12:14pm

This worked for me, too! Thank you!
August 31st, 2011 9:11am

Great ! Who would believe that the order matters.
Free Windows Admin Tool Kit Click here and download it now
August 31st, 2011 11:33am

Worked for me, thanks!
September 2nd, 2011 4:15am

I'm posting this so that if anyone having a similar issue to mine can solve their problem. I too received the 401.2 Unauthorized error message. I had all of the correct features installed and configured on the web site and the virtual directory. Yet, I still received the 401.2 Unauthorized error message. We configured all of our anonymous access to use specific credentials in the applicationHost.config file of IIS. To solve the problem, I configured the application pool running the virtual directory to use the same credentials configured for anonymous access. I then went into the virtual directory, opened up the Authentication, and edited the Anonymous access credentials. In my case, the Specific User option was checked (it contained the name of the credentials we configured in applicationHost.config). I switched it to the Application pool identity option (the same credentials!) and the application started working. I wish I could explain why this fixed the problem, but I'm completely baffled.
Free Windows Admin Tool Kit Click here and download it now
October 19th, 2011 4:08pm

For IIS 7.5, check out this article: http://support.microsoft.com/kb/950100 Issue 3: Error message when you try to open the Microsoft Dynamics CRM 4.0 Web application: "HTTP Error 401.2 – Unauthorized" To work around this problem, enable the Windows Authentication role service in the Web Server (IIS) role. For IIS 7.5 you can enable it like this: http://www.iis.net/ConfigReference/system.webServer/security/authentication/windowsAuthentication
November 28th, 2011 5:08pm

Worked for me too. Thank you so much! We just need to go to the Authentication section for the particular website, edit the Anonymous Authentication, for specific user ISUR, click Set, enter username and password and all set to GO!
Free Windows Admin Tool Kit Click here and download it now
December 22nd, 2011 6:55am

Thanks Naseer! That solved my problem.
January 6th, 2012 1:31pm

To whoever this may help, this saved my life... IIS 7 was difficult for figuring out why i was getting the 401 - Unauthorized: Access is denied due to invalid credentials... until i did this... 1.) Open iis and select the website that is causing the 401 2.) Open the "Authentication" property under the "IIS" header 3.) Click the "Windows Authentication" item and click "Providers" 4.) For me the issue was that Negotiate was above NTLM. I assume that there was some kind of handshake going on behind the scenes, but i was never really authenticated. I moved the NTLM to the top most spot, and BAM that fixed it. This just saved me... thanks so much!
Free Windows Admin Tool Kit Click here and download it now
January 18th, 2012 9:04am

WOW! Thanks jay-dubb! This certainly set me in the right direction. I do not have Windows Authentication but under 'Anonymous Authentication' I changed this to authenticate to the IIS App Pool instead of IUSER. Thanks again!
January 20th, 2012 12:37pm

To whoever this may help, this saved my life... IIS 7 was difficult for figuring out why i was getting the 401 - Unauthorized: Access is denied due to invalid credentials... until i did this... 1.) Open iis and select the website that is causing the 401 2.) Open the "Authentication" property under the "IIS" header 3.) Click the "Windows Authentication" item and click "Providers" 4.) For me the issue was that Negotiate was above NTLM. I assume that there was some kind of handshake going on behind the scenes, but i was never really authenticated. I moved the NTLM to the top most spot, and BAM that fixed it. Thank you for taking the time to post jay-dubb - Worked for me, on a 2 year old certserver!KL_Dane
Free Windows Admin Tool Kit Click here and download it now
January 31st, 2012 2:54am

To whoever this may help, this saved my life... IIS 7 was difficult for figuring out why i was getting the 401 - Unauthorized: Access is denied due to invalid credentials... until i did this... 1.) Open iis and select the website that is causing the 401 2.) Open the "Authentication" property under the "IIS" header 3.) Click the "Windows Authentication" item and click "Providers" 4.) For me the issue was that Negotiate was above NTLM. I assume that there was some kind of handshake going on behind the scenes, but i was never really authenticated. I moved the NTLM to the top most spot, and BAM that fixed it. Thanks for this resolution. Worked on my environment of Server 2008R2 CA!Jay Valambhia | www.netflo.co.uk
January 31st, 2012 10:12am

Just remember that this means that Kerberos will not be used, every user will now authenticate with NTLM insted of Kerberos. Also to configure Kerberos correct you have to set the correct SPN for the application pool the IIS site is running in.
Free Windows Admin Tool Kit Click here and download it now
January 31st, 2012 10:31am

That makes perfect sense that bad credentials errors can be fixed in the authentication options. I tried Basic Authentication to see if I could log into my web page (actually it's my wife's - a redirect from a virtual directory in my website) using my admin username and password. Shockingly, the website wouldn't let me in. I checked out the folder permissions and they had changed on me (probably a Windows update). I gave everybody in the ACL read (and read/write) permissions and all of a sudden I could log in. I disabled Basic Authentication and went back to Anonymous Authentication and the page still came up without that nasty 401 error. BTW, I'm running IIS 7.5
February 8th, 2012 3:12am

I'm having the same problem. Didn't have Windows Authentication so I added this role. Now, when I select Authentication > Windows Authentication I don't have the 'Providers' option in the right hand pane. Can anyone please tell me how to install/access the Providers so that I can change them? I am using IIS7 on Windows Server 2008
Free Windows Admin Tool Kit Click here and download it now
April 24th, 2012 5:38am

jay-dubb, I could kiss you! Thanks!
May 24th, 2012 11:38am

To whoever this may help, this saved my life... IIS 7 was difficult for figuring out why i was getting the 401 - Unauthorized: Access is denied due to invalid credentials... until i did this... 1.) Open iis and select the website that is causing the 401 2.) Open the "Authentication" property under the "IIS" header 3.) Click the "Windows Authentication" item and click "Providers" 4.) For me the issue was that Negotiate was above NTLM. I assume that there was some kind of handshake going on behind the scenes, but i was never really authenticated. I moved the NTLM to the top most spot, and BAM that fixed it. This fixed it for me when using windows authentication, thank you
Free Windows Admin Tool Kit Click here and download it now
June 11th, 2012 5:16am

Hi , Do you have to restart the IIS service for the effect to take action ?
June 14th, 2012 11:13pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics