Wednesday, February 12, 2014

How to fix Access denies problem while run ASP.NET MVC project with Windows Authentication in Visual Studio 2012

Open project file with notepad
 Change
<IISExpressWindowsAuthentication>disabled</IISExpressWindowsAuthentication>
To
<IISExpressWindowsAuthentication>enabled</IISExpressWindowsAuthentication>
The full error is:
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.

No comments:

Post a Comment