I have an MVC3 intranet application, originally developed in VS 2010. I just tried to open it up on a new machine running VS 2012, but I'm getting this:
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.
It's configured to run under the local IIS web server (using IIS express). There is a WCF service housed in this project using a .svc file, which I can access just fine. I only get this error while accessing the MVC site through the browser. If I switch the project over to use the Visual Studio Development Server, it seems to work fine, but I have to run it under IIS Express, since I need to be able to access the site remotely to test certain functionality.
Is there something I have to do in the web.config or project properties to make this project work in VS 2012?
Here is a snippet from my web.config
<authentication mode="Windows" />
<authorization>
<deny users="?" />
</authorization>
<profile>
<providers>
<clear />
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" />
</providers>
</profile>
<roleManager enabled="true" defaultProvider="AspNetWindowsTokenRoleProvider">
<providers>
<clear />
<add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" />
<add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" />
</providers>
</roleManager>
<customErrors mode="Off" />
<httpModules>
<add name="WindowsAuthentication" type="System.Web.Security.WindowsAuthenticationModule" />
</httpModules>