ASP.NET
ASP.NET MVC 4 Redirects Incorrect Login URL /login.aspx
When working with ASP.NET MVC and WebMatrix.WebData.SimpleMembershipProvider, I faced an issue of ASP.NET redirecting to incorrect login page i.e. “/login.aspx” in case of unauthorized access. As a result, got server error something like below snapshot Solution: The resolution is simple and somewhat intuitive. Somebody needs to tell ASP.NET my LoginUrl. Read more…