Search This Blog

Thursday, November 20, 2014

Migration from Visual Studio 2008 to 2013 : Website is not running (throwing access denied error)

Migration from Visual Studio 2008 to 2013

Without any code changes I successfully migrated from VS 2008 to 2013 but when running website from VS 2013 I got below error.

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.18408

Change the below settings to make everything works.

1. Goto Project properties (F4)
2. Update AnonymousAuthentication to Disabled
3. Update WindowsAuthentication to Enabled

Another way also u can change the settings
Go to "\My Documents\IISExpress\config\applicationhost.config" folder and update anonymousAuthentication to be false and the windowsAuthentication mode to true.

Popular Posts