Http Error 401.2
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up HTTP Error 401.2 - Unauthorized for new site in a working app pool up vote 1 down vote favorite 1 I https://support.microsoft.com/en-us/kb/253667 am deploying a new EF 4.0 ASP.NET MVC 4 site to an IIS 7.0 server but I'm getting an error that says: "HTTP Error 401.2 - Unauthorized You are not authorized to view this page due to invalid authentication headers." I have Anonymous Authentication and Forms Authentication disabled. ASP.NET Impersonation and Windows Authentication are both enabled. I've confirmed that everything okay according to this Microsoft KB article Even better, there is already a working http://stackoverflow.com/questions/16902601/http-error-401-2-unauthorized-for-new-site-in-a-working-app-pool site in the same app pool using the same type of authentication. I'm not sure what to check next. Does anyone have an idea what's causing this error? asp.net-mvc iis windows-authentication share|improve this question edited Jun 3 '13 at 19:19 hbrock 1,0461926 asked Jun 3 '13 at 17:38 Splendor 73061847 have you seen this? –kevin_fitz Jun 3 '13 at 19:04 add a comment| 2 Answers 2 active oldest votes up vote 4 down vote accepted I figured it out. I had to add this to my applicationHost.config file (located in the windows/system32/inetsrv/config folder).
was testing an ASP.NET MVC website on my Windows 7 64-bit machine, I got the following error: HTTP Error 401.2 http://bartwullems.blogspot.com/2011/08/error-message-in-iis-75-http-error-4012.html - Unauthorized You are not authorized to view this page due to invalid authentication headers. After trying to change almost every possible setting in IIS I finally found the root cause of the issue. My default installation of IIS was running without the Windows Authentication module installed. As my website was expecting windows authentication, it was not unexpected to see this error. After enabling http error this feature in the list Windows Features, everything worked! Posted by Bart Wullems at 8:50 PM Labels: .NET, IIS, Web development 3 comments: Valentino Vranken said... Hey Bart,So you're not reading my blog anymore then? Otherwise the following post would have saved you some time and frustration: http://blog.hoegaerden.be/2010/02/14/iis-7-5-and-windows-authentication/:-)Regards,Valentino. September 14, 2011 at 7:42 PM Alex Paul said... I faced the same problem and I http error 401.2 got solution from: http://www.microsoftsupportchat.com/blog/post/Error-code-401.2/ April 17, 2014 at 10:48 PM Goge said... Thank you very much! October 23, 2014 at 4:54 PM Post a Comment Newer Post Older Post Home Subscribe to: Post Comments (Atom) My Windows Store apps POW! Comic Book Reader My Windows Phone apps TFS Monitor Search in this blog Blog Archive ► 2016 (180) ► October (12) ► September (17) ► August (22) ► July (19) ► June (22) ► May (11) ► April (22) ► March (20) ► February (21) ► January (14) ► 2015 (214) ► December (18) ► November (8) ► October (22) ► September (13) ► August (15) ► July (20) ► June (20) ► May (19) ► April (17) ► March (22) ► February (20) ► January (20) ► 2014 (222) ► December (18) ► November (15) ► October (20) ► September (21) ► August (16) ► July (19) ► June (20) ► May (18) ► April (19) ► March (16) ► February (20) ► January (20) ► 2013 (236) ► December (15) ► November (18) ► October (21) ► September (20) ► August (22) ► July (18) ► June (20