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: , ,

1 Comments:

Anonymous Anonymous said...

Man, thank you for this tip. I looked for hours for the solution to this and got so many other wrong suggestions such as using: add key="autoFormsAuthentication" value="false" but your solution really worked for me.

Thank you

June 10, 2011 at 4:03 PM  

Post a Comment

Subscribe to Post Comments [Atom]

<< Home