elmah.axd 404 on IIS7.5

550 views
Skip to first unread message

aminophenol

unread,
Nov 14, 2012, 2:35:52 PM11/14/12
to el...@googlegroups.com
I am getting 404 for elmah.axd even after I've added the <system.webServer> section as per http://stackoverflow.com/questions/933554/elmah-not-working-with-asp-net-site/1175023#1175023.  Not sure where to look next.

- Windows 2008 R2 - IIS 7.5 - 64-bit
- elmah version 1.2 - SP2
- This is a server setup - the dll is strong signed and installed to GAC
- The web.config being modified is in C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG
- all references to Elmah in web.config have publictoken:
   e.g. <section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah, Version=1.2.14706.0, Culture=neutral, PublicKeyToken=4bd720b25a3a99d4"/>
- <security allowRemoteAccess="1"/>

Thanks in advance for sharing your insight.

aminophenol

unread,
Nov 15, 2012, 5:59:38 PM11/15/12
to el...@googlegroups.com
nm - problem resolved by:

1) modified root web.config at both C:\Windows\Microsoft.NET\Framework and C:\Windows\Microsoft.NET\Framework64 for 32-bit and 64-bit apps.  no need for <system.webServer> section here.

2) for apps in integrated mode, add the lines for the <system.webServer> section to \\localhost\c$\Windows\System32\inetsrv\config\applicationHost.config.  One may also add them directly using the IIS Manager.  (Handler Mappings and Modules)

cheers!

Can Kaya

unread,
Nov 1, 2013, 11:20:57 AM11/1/13
to el...@googlegroups.com
you dont have to change your machine web.config settings. if you add these codes

<modules runAllManagedModulesForAllRequests="true">
      <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" />
      <add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler" />
      <add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler" />
    </modules>
    <handlers>
      <add name="Elmah" verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" />
    </handlers>

  your config file under the <system.webserver> your problem will be disappear i think.

Regards.

On Wednesday, December 19, 2012 11:59:11 AM UTC+2, manik arora wrote:
HI aminopherol,

I am having the same problem, when i am deploying my application to live server then server is giving 404 for elmah.axd. Can you share the web.config with me so i could get it working. I am not very much expert in IIS configurations. Thanks in advance.

Manik
Reply all
Reply to author
Forward
0 new messages