Friday, December 18, 2009

ASP.NET modules on IIS 7.5

IIS 7.0/7.5 is still new to me as I am not deploying applications but rather developing them. Anyway, I've been asked to help in moving one of applications from IIS 6.0 to 7.5 as someone had noticed that it just does not work.

Few hours spent on trying to find out what's wrong and the answer is: for some reason it is not sufficient to list your ASP.NET modules in the web.config file as you always do:

<add name="MyModule" type="MyModule.MyModule, MyModule" />


Such modules just do not work at all. Instead, you have to use a new configuration tab, "Modules" where you have to find and "enable" your modules.

I have no idea where this information is stored and why the web.config is not respected regarding modules anymore.

If there's a simple way to just say to IIS "yes, please use all my modules listed in web.config as you did in previous versions" I would like to learn it.

Edit: seems that the solution exists and is relatively simple. I've just missed the system.webServer section of the web.config file. Please read more on this here.

No comments: