unable to open the elmah.axd page

783 views
Skip to first unread message

Sheel Shah

unread,
May 23, 2012, 10:35:06 AM5/23/12
to ELMAH
Hello,

I'm getting a generic 500-internal server error, when I'm trying to
access the elmah.axd handler on the websites I have this configured on
(IIS 7.5/.NET 4.0). A good sign is that I am seeing stuff getting
logged to my database (I'm using SQL server). Unfortunately, I'm not
sure how to resolve this, so I would greatly appreciate any
assistance. Below are the configurations I made in the web.config:

At the bottom of the configSections Section:
<sectionGroup name="elmah">
<!-- NOTE! If you are using ASP.NET 1.x then remove the
requirePermission="false" attribute from the section
elements below as those are only needed for
partially trusted applications in ASP.NET 2.0 -->
<section name="security" requirePermission="false"
type="Elmah.SecuritySectionHandler, Elmah" />
<section name="errorLog" requirePermission="false"
type="Elmah.ErrorLogSectionHandler, Elmah" />
<section name="errorMail" requirePermission="false"
type="Elmah.ErrorMailSectionHandler, Elmah" />
<section name="errorFilter" requirePermission="false"
type="Elmah.ErrorFilterSectionHandler, Elmah" />
<section name="errorTweet" requirePermission="false"
type="Elmah.ErrorTweetSectionHandler, Elmah" />
</sectionGroup>

Directly after the close of the configSections Section:

<elmah>
<security allowRemoteAccess="1" />
<errorLog type="Elmah.SqlErrorLog, Elmah"
connectionStringName="ErrorDB" />
</elmah>

DB Connection String:

<!-- DB connection for ELMAH -->
<add name="ErrorDB" connectionString="User
ID=elmah;PWD=<PASSWORD>;Data Source=192.168.X.X;Initial
Catalog=elmah;" providerName="System.Data.SqlClient"/>

After the close of the system.web section:

<location path="elmah.axd">
<system.web>
<httpHandlers>
<add verb="POST,GET,HEAD" path="elmah.axd"
type="Elmah.ErrorLogPageFactory, Elmah" />
</httpHandlers>
<authorization>
<!--<deny users="*" /> --> <-- Removing this line
does nothing as well
</authorization>
</system.web>
<system.webServer>
<handlers>
<add name="ELMAH" verb="POST,GET,HEAD"
path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah"
preCondition="integratedMode" />
</handlers>
</system.webServer>
</location>

In Modules Section of the System.WebServer section:

<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah"
preCondition="managedHandler" />
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah"
preCondition="managedHandler" />
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah"
preCondition="managedHandler" />
<add name="ErrorTweet" type="Elmah.ErrorTweetModule, Elmah"
preCondition="managedHandler" />

Thanks in advance,
Sheel Shah

Atif Aziz

unread,
May 23, 2012, 1:26:23 PM5/23/12
to el...@googlegroups.com
I'm getting a generic 500-internal server error 

Are you getting this from IIS or ASP.NET? Which screen of death? :)
You said ELMAH is logging so do you see the 500 errors from accessing elmah.axd logged in the database?

- Atif


--
You received this message because you are subscribed to the Google Groups "ELMAH" group.
To post to this group, send email to el...@googlegroups.com.
To unsubscribe from this group, send email to elmah+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/elmah?hl=en.


Sheel Shah

unread,
May 23, 2012, 3:58:03 PM5/23/12
to ELMAH
Hi Atif,

Thanks for responding. It appears to be coming from IIS. IT doesn't
appear to be logging any 500 errors in the database, but it is logging
the 404 errors.

Thanks,
Sheel

Atif Aziz

unread,
May 24, 2012, 1:18:29 PM5/24/12
to el...@googlegroups.com
Does the IIS page display any more specific error information that might give hints as to what's going wrong? If not, is IIS reporting a sub-code to the 500 as described in the following MSKB article?

- Atif

Sheel Shah

unread,
May 30, 2012, 11:57:19 AM5/30/12
to ELMAH
Hi Atif,

Unfortunately, the page is only displaying the following:
500 - Internal server error.
There is a problem with the resource you are looking for, and it
cannot be displayed.

The sub-code that is being logged is this: ◦500.23 - An ASP.NET
httpHandlers configuration does not apply in Managed Pipeline mode.

Any advice?

Thanks,
Sheel

On May 24, 12:18 pm, Atif Aziz <aziza...@gmail.com> wrote:
> Does the IIS page display any more specific error information that might
> give hints as to what's going wrong? If not, is IIS reporting a sub-code to
> the 500 as described in the following MSKB article?http://support.microsoft.com/kb/943891

Sheel Shah

unread,
May 30, 2012, 12:06:10 PM5/30/12
to ELMAH
Hi again Atif,

I think I resolved the issue. Basically, the 500.23 error told me that
the handler doesn't like the application pool running in integrated
pipeline mode. Unfortunately, the site as a whole requires that. So I
put this key into the system.webserver section of my web.config file:
<validation validateIntegratedModeConfiguration="false" />

Thanks for pointing me in the right direction with getting that sub
code and finding the full interpretation of it!

Sheel

On May 24, 12:18 pm, Atif Aziz <aziza...@gmail.com> wrote:
> Does the IIS page display any more specific error information that might
> give hints as to what's going wrong? If not, is IIS reporting a sub-code to
> the 500 as described in the following MSKB article?http://support.microsoft.com/kb/943891

James_2JS

unread,
May 30, 2012, 12:07:21 PM5/30/12
to el...@googlegroups.com
Could you try this please?

<location path="elmah.axd"> 
        <system.web> 
            <httpHandlers> 
                <add verb="POST,GET,HEAD" path="elmah.axd" 
type="Elmah.ErrorLogPageFactory, Elmah" /> 
            </httpHandlers> 
            <authorization> 
                <!--<deny users="*" />  --> <-- Removing this line 
does nothing as well 
            </authorization> 
        </system.web> 
        <system.webServer> 
            <validation validateIntegratedModeConfiguration="false" />  

            <handlers> 
                <add name="ELMAH" verb="POST,GET,HEAD" 
path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" 
preCondition="integratedMode" /> 
            </handlers> 
        </system.webServer> 
  </location>

Cheers,

James
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/elmah?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "ELMAH" group.
> > To post to this group, send email to el...@googlegroups.com.
> > To unsubscribe from this group, send email to

James_2JS

unread,
May 30, 2012, 12:10:08 PM5/30/12
to el...@googlegroups.com
Our posts crossed!!

Please can you confirm whether you added the  <validation validateIntegratedModeConfiguration="false" /> to:

a) The main <system.webServer> section or
b) The <location><system.webServer> section

?

Thanks,

James
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/elmah?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "ELMAH" group.
> > To post to this group, send email to el...@googlegroups.com.
> > To unsubscribe from this group, send email to

Sheel Shah

unread,
May 31, 2012, 9:43:35 AM5/31/12
to ELMAH
Hi James,

I added it to the main system.webserver section.

Thanks,
Sheel
> > > > > > elmah+un...@googlegroups.com.
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/elmah?hl=en.
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "ELMAH" group.
> > > > To post to this group, send email to el...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > elmah+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages