Access Is Denied Error Message 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 IIS Express gives Access Denied error when debugging ASP.NET MVC up vote 70 down vote favorite 18 I have created an ASP.NET MVC 3 project, and am using IIS Express as the web server when developing. When I try to debug, I get the error message below. How can this be solved? Server Error in '/' Application. Access is denied. Description: An error occurred while accessing the resources required to serve this request. The server may not be configured for access to the requested URL. 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. asp.net-mvc debugging iis iis-express access-denied share|improve this question edited Oct 25 '13 at 15:23 Leniel Macaferi 61.4k24243327 asked Jan 29 '12 at 13:50 Kris-I 5,75232102171 3 are you running the IISExpress without administrative Privileges? –chandmk Jan 29 '12 at 14:02 2 So after banging my head on this for a while I finally realized it was because VS hadn't set a default page and apparently IISExpress.exe doesn't give folder listings to make that obvious. –Mark Allen Aug 6 '14 at 22:58 add a comment| 13 Answers 13 active oldest votes up vote 81 down vote The cause if had for this problem was IIS Express not allowing WindowsAuthentication. This can be enabled by setting
Web Platform Installer Get Help: Ask a Question in our Forums More Help Resources Blogs Forums Home IIS.NET Forums IIS 5 & IIS 6 Security Error message 401.2.: Unauthorized: Logon failed due to server config... Error message 401.2.: Unauthorized: Logon failed due to server configuration. [Answered]RSS 2 replies Last post Feb 11, 2011 02:34 AM by Leo Tang - MSFT ‹ Previous Thread|Next Thread › Print Share Twitter Facebook Email Shortcuts Active Threads Unanswered Threads Unresolved Threads Advanced Search Reply lanuk 1 Post Error message 401.2.: Unauthorized: Logon failed due to server configuration. Feb 09, 2011 01:58 AM|lanuk|LINK We have a Win2k3 standard 32 bit server http://stackoverflow.com/questions/9053666/iis-express-gives-access-denied-error-when-debugging-asp-net-mvc and IIS installed on it. Now customer has created a virtual directory on this server. Basic authentication is selected for ths virtual directory. Now whenever anyone trying access the virtual directory either from IE or trying to browse it from IIS manager it is keep on asking for credentials and if it is cancelled then the following error is coming: Access is denied. Description: An error occurred while accessing the http://forums.iis.net/t/1175453.aspx?Error+message+401+2+Unauthorized+Logon+failed+due+to+server+configuration+ resources required to serve this request. The server may not be configured for access to the requested URL. 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. I have tried to changethe authentication to anonymous access orintegrated authentocation but all results the same. Please help to resove this issue. access denied Reply KristoferG 1360 Posts Moderator Re: Error message 401.2.: Unauthorized: Logon failed due to server configuration. Feb 09, 2011 02:05 AM|KristoferG|LINK The first thing i would do is to check the NTFS permissions on the folder/files. Eventually, run Process Monitor to see if it is a problem related toaccess to thefile system. http://technet.microsoft.com/en-us/sysinternals/bb896645 Kristofer Gafvert http://www.it-notebook.org Reply Leo Tang - M... 4142 Posts Re: Error message 401.2.: Unauthorized: Logon failed due to server configuration. Feb 11, 2011 02:34 AM|Leo Tang - MSFT|LINK Hi, If your problem persists, please check the following article: Troubleshooting HTTP 401 errors in IIS http://support.microsoft.com/kb/907273 Please mark the replies as answers if they help or unmark if not. Feedback to us ‹ Previous Thread|Next Thread ›
Web Platform Installer Get Help: Ask a Question in our Forums More Help Resources Blogs Forums Home IIS.NET Forums IIS 5 & IIS 6 ASP.NET Administration HTTP Error 401.2 https://forums.iis.net/t/1176571.aspx - Unauthorized: Access is denied due to server confi... HTTP Error 401.2 - Unauthorized: Access is denied due to server configuration. [Answered]RSS 1 reply Last post Mar 21, 2011 11:21 AM by owjeff ‹ Previous Thread|Next Thread › Print Share Twitter Facebook Email Shortcuts Active Threads Unanswered Threads Unresolved Threads Advanced Search Reply AlexDinu 3 Posts HTTP Error 401.2 - Unauthorized: Access access is is denied due to server configuration. Mar 18, 2011 05:04 PM|AlexDinu|LINK I've upgraded an .net 2.0 web application to .net 4.0 and I'm trying to setu it up on a new 2003 server. I can run the solution fine in it's own dev server, but when I deploy to IIS, I get the following: HTTP Error 401.2 - Unauthorized: Access is denied access is denied due to server configuration. Internet Information Services (IIS) I need to run it in integrated windows authentication. When I add some logging to my main page, default.aspx, I see that I'm hitting gloabal.asax but it won't load the other aspx pages in my frameset. I don't think it create a cookie either. I know this is something to do with permissions, but I can't put my finger on it. Alex Reply owjeff 680 Posts Re: HTTP Error 401.2 - Unauthorized: Access is denied due to server configuration. Mar 21, 2011 11:21 AM|owjeff|LINK The user accessing the site does not have proper permissions. http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/8feeaa51-c634-4de3-bfdc-e922d195a45e.mspx?mfr=true Ensure that proper authentication methods have been defined in IIS for the site, and that the user has permissions on disk. Jeff Graves OrcsWeb: Managed Windows Hosting Solutions "Remarkable Service. Remarkable Support." ‹ Previous Thread|Next Thread › This site is managed for Microsoft by Neudesic, LLC. | © 2016 Microsoft. All rights reserved. Privacy Statement Terms of Use Contact Us Advertise With Us Hosted on Microsoft Azure Follow us on: Twitter Facebook Microsoft Feedback on IIS Powered by IIS8