I have enabled form authentication in my ASP.NET MVC web application. I want to allow anonymous users access only to some specific pages, including Register.cshtml for inst
In the Web.config i had the below authorization
this causes the
[AllowAnonymous]
not work correctly, i had to remove that authorization of my Web.config, and in all the controllers put the line
[Authorize]
before the declaration of the class, to work correctly.