Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 5.x > Installation and deployment > Installing Elmah on version 5.5.3803 View modes: 
User avatar
Member
Member
lance@vootal.com - 10/7/2010 6:56:52 AM
   
Installing Elmah on version 5.5.3803
Hi,
I'm trying to get Elmah to work on my kentico install. I've installed elmah successfully on other asp.net web applicatons, but this is the first time I've tried it on Kentico.

I've found the super-helpful article here: http://devnet.kentico.com/Knowledge-Base/API-and-Internals/ELMAH-(Error-Logging-Modules-and-Handlers)-integra.aspx on how to do it. But it doesn't work for me, I keep getting a 404 error when trying to load /elmah.axd.

Could this be related to my configuring Kentico for 'custom URL extensions' (http://devnet.kentico.com/docs/devguide/index.html AND http://devnet.kentico.com/docs/devguide/index.html?configuration_of_custom_url_extensions.htm) ?

FYI - the Elmah 64x demo runs fine on the server. You can run the demo by running demo.cmd when you unpack the elmah binaries.

Thanks,
Lance

User avatar
Member
Member
lance@vootal.com - 10/7/2010 1:50:05 PM
   
RE:Installing Elmah on version 5.5.3803
I finally got it working - I was missing the elmah entry in the system.webServer node: <system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<httpErrors existingResponse="PassThrough" />
<modules runAllManagedModulesForAllRequests="true">
<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="XHtmlModule" type="CMS.CMSOutputFilter.OutputFilterModule, CMS.OutputFilter"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="MetaWeblogAPI" preCondition="integratedMode" verb="*" path="MetaWeblog.ashx" type="CMS.MetaWeblogProvider.MetaWeblogAPI, CMS.MetaWeblogProvider"/>
<add name="Elmah" verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah"/>
</handlers>
</system.webServer>