Monday, December 13, 2010

"The resource cannot be found" error in ASP.NET MVC 3 RC1 and RC2

If you are trying out the new ASP.NET MVC 3 framework, you can run into a problem when your requests are automatically redirected to a (possibly non-existent) login page.

To fix this, include the following lines in your web.config file:

For MVC 3 beta and MVC 3 RC1:
<appsettings>
<add key="autoFormsAuthentication" value="false" />
</appsettings>

For MVC 3 RC2:
<appsettings>
<add key="enableSimpleMembership" value="false" />
</appsettings>

Labels: , ,