We use the HttpModule to connect to the FormsAuthenticationModule module and subscribe to the Authenticate event. When we use web forms, this event fires in the module. When we use MVC, this event does not fire.
I tried using the [Authorize] attribute on the controllers and the location in web.config (although this is not the best practice) to try to fire this event, but it still doesnβt.
The event fires when using the Cassini web server, but does not fire in IIS 7.5 or IIS Express. We run ASP.NET MVC 2 using .NET 3.5
EDIT
The Authentication event is triggered when we request a .aspx or .ashx file. If we request a file without continuing either .css or .js, it also does not start.
The new ASP.NET MVC application will fire this event for each requested file.
Any suggestions?
source share