In asp.net with forms authentication

Apr 22, 2011 at 9:12 PM

Hi,

I've used RazorEngine in asp.net project with forms authentication and suddenly my forms authentication failed... It started to point to some Account\Login which is not configured anywhere. Actually after few hours of investigation I've found that to solve it we need to add:

<add key="loginUrl" value="~/LogOn" />

in appSettings. The source: http://stackoverflow.com/questions/4087300/asp-mvc-problem-with-configuration-of-forms-authentication-section.

It might help somebody.

Regards,

Bezieur

Coordinator
Apr 25, 2011 at 5:33 PM

Can you post your configuration settings? The razorEngine should have *no* effect on that what-so-ever, except possibly with the virtual path. But it's something that we should track down if it's really an issue.