Access 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
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 Access Denied error after setting up MVC application up vote 12 down vote favorite 2 Access is denied. Description: An error occurred while accessing the http://stackoverflow.com/questions/9053666/iis-express-gives-access-denied-error-when-debugging-asp-net-mvc 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. Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET > Version:4.0.30319.18010 I followed the simple tutorial http://stackoverflow.com/questions/14135813/access-denied-error-after-setting-up-mvc-application from here, ran the application and received this message. c# asp.net-mvc-4 share|improve this question edited Jan 3 '13 at 9:43 HaemEternal 1,32941945 asked Jan 3 '13 at 9:09 Nick Ky 69114 2 What is the hosting environment? I mean do you have the access to the file system? or you are on a shared host, or you are debugging you application using visual studio directly? –Mohamed Sakher Sawan Jan 3 '13 at 9:11 Try to open VS as Administrator. Did you set up IIS or IIS Express? –Davin Tryon Jan 3 '13 at 9:12 I am debugging it using visual studio directly and yes i tried open VS as administrator too –Nick Ky Jan 3 '13 at 9:56 which VS and windows version you are using? –Cris Jan 3 '13 at 12:04 visual studio 2012 Ultimate RC and windows 8 –Nick Ky Jan 4 '13 at 0:17 add a comment| 3 Answers 3 active oldest votes up vote 31 down vote Check your project properties and ensure that Anonymous Authentication = Enabled. If you have ASP.NET Community Standup Forums Help Home/ASP.NET Forums/General ASP.NET/Security/Access denied error message 401.2 Access denied error message 401.2 [Answered]RSS 7 http://forums.asp.net/t/1213489.aspx?Access+denied+error+message+401+2 replies Last post Jul 14, 2010 07:39 AM by mbs220 ‹ Previous Thread|Next Thread › Print Share Twitter Facebook Email Shortcuts Active Threads Unanswered Threads Unresolved Threads https://www.youtube.com/watch?v=cZio2Xqom78 Support Options Advanced Search Related Links GuidanceSamples Reply anoopbitsmar... None 0 Points 5 Posts Access denied error message 401.2 Jan 31, 2008 07:15 AM|anoopbitsmart|LINK Hi, I want access denied my .Net app to be accessible to a group only.For this I entered the following in web.config fix error Unauthorized Logon failed due to server configuration Vis Dotnet SubscribeSubscribedUnsubscribe851851 Loading... Loading... Working... Add to Want to watch this again later? Sign in to add this video to a playlist. Sign in Share More Report Need to report the video? Sign in to report inappropriate content. Sign in Statistics 5,114 views 12 Like this video? Sign in to make your opinion count. Sign in 13 1 Don't like this video? Sign in to make your opinion count. Sign in 2 Loading... Loading... Loading... Rating is available when the video has been rented. This feature is not available right now. Please try again later. Published on Sep 2, 2015Fix errorAccess 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. Category Science & Technology License Standard YouTube License Show more Show less Loading... Advertisement Autoplay When autoplay is enabled, a suggested video will automatically play next. Up next How to setup & configure website hosting using Windows 2008 Server and IIS7 - Duration: 20:39. HostedAppliance.NET 80,592 views 20:39 MVC - How to add custom authorization - Duration: 11:26. Vis Dotnet 2,881 views 11:26 Quick start: Hosting your ASP.NET Website in IIS - Duration: 6:20. Michael Kennedy 108,784 views 6:20 Fis IIS 401.2 Errors - Duration: 1:09. David Johnson 1,644 views 1:09 How to fix Unauthorized actions detected 100% work - Duration: 5:43. Owen Singh 8,334 views 5:43 MSSQL - Query to