By default, the Asp.net MVC3 login is redirected to the wrong view. Where is this kit?

I am having problems redirecting to the login page when a user tries to access a page that requires authorization. For some reason, he wants to direct:

http://domain.com/Account/Login 

When it should be redirected to:

 http://domain.com/Account/LogOn 

I am sure I installed it correctly in the web.config file:

 <authentication mode="Forms"> <forms loginUrl="~/Account/LogOn" timeout="2880" /> </authentication> 

but for some reason it still redirects incorrectly. I also searched for β€œLogin” in my entire decision and did not see another place where the account / login will be indicated.

How can I fix this to redirect correctly?

+4
source share
1 answer

This seems to be a known issue when using deployable assemblies with MVC3.

I found the solution in the answer here .

+2
source

Source: https://habr.com/ru/post/1436861/


All Articles