简体   繁体   中英

Visual Studio 2012 Debugging MVC 4 Access Denied

Has anyone received the following error when trying to debug in Visual Studio 2012 on Windows 8? It is a standard (out of the box haven't even changed the styling yet) MVC 4 application running on .Net 4.

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.


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18033

Answered my own question. Issue was my setup. Using an Intranet Template in a non-AD environment.

From web.config:

<authorization>
  <deny users="?" />
</authorization>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM