Question

My custom routing have culture prefix and LoginPath in ConfigureAuth is changed accordingly. But after installing Microsoft.AspNet.WebHelpers package - and WebPages.WebData as dependency which is real source of problem, LoginPath setting is fully ignored and instead trying to go to /Account/Login which is wrong route. Is anybody knows workaround for this?

Était-ce utile?

La solution

You need to disable simple membership:

<appSettings>
<add key="enableSimpleMembership" value="false"/>
</appSettings>

http://brockallen.com/2011/06/01/beware-bin-deployment-of-mvc-and-razor-with-formsauthentication/

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top