ITmeze - IT world server like cyprus meze

Handler "Elmah" has a bad module "ManagedPipelineHandler" in its module list


Elmah - awesome library for that enable to log exceptions (as well as those that end up with Yellow screen of death). It comes with a great module and a handler used to view error logs. It really helps a lot. I used that in literally every web project I have made. Yesterday, I was installing new project on fresh Windows Server 2008 R2. I ended up with an error: Handler "Elmah" has a bad module "ManagedPipelineHandler" in its module list. After hour of goggling I couldn't find a solution that would solve my problem (reinstalling, changing ISAPI restrictions). Nothing helped. Then I have found out that problem lies in IIS7 configuration part in my web.config.
    <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah"/>
    <add name="Elmah" path="elmah.axd" verb="POST,GET,HEAD" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode"   />
My set up was done based on dotnetslackers article, and I simply copied their pre IIS7 configuration to system.webserver part. The part that I was missing was preCondition="integratedMode" attribute for a handler. Hope that helps someone

Tags: [web development]

Copyright 2013 © ITmeze

comments powered by Disqus