Move Global.asax to iHttpModule when using ASP.NET MVC

Posted by rockinthesixstring on Stack Overflow See other posts from Stack Overflow or by rockinthesixstring
Published on 2010-06-05T20:38:35Z Indexed on 2010/06/05 20:42 UTC
Read the original article Hit count: 224

Filed under:
|

I have successfully created an iHttpModule to replace my Global.asax file in many Web Forms applications. But in looking at the Global.asax file in my MVC application, the methods are totally different.

I'm wondering if it is still possible to create this same thing in an MVC app. I know it's not necessary and the Global.asax works just fine. I suppose I just want to have nothing but the web.config in the root directory of my application.

Also, I am putting all of my classes in a separate class library project instead of a folder in my MVC application. Not sure if this makes a difference or not.

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about global-asax