same deal here, I do get the page... bu no records. I added a record that was creating in my development box and it shows. So the issue is that when I do the same test scenario, the error doesn't get logged in the production server which is using IIS7.
Are you using classic or integrated app pool? Check if it's classic. If it is then your httpmodules and httphandlers won't be set because that's an integrated definition and not a classic definition.
Don't forget to mark useful responses as Answer if they helped you towards a solution.
no, I got a App_Code directory where ELMAH was dumping the errors in an xml file in my development box, which it worked perfect, but when I deployed the code to the server I get the ELMAH page, but it doestn't log the exception errors. I get No Records....
at least I get the elmah page (axd).
lesponce
Member
108 Points
313 Posts
ELMAH not Logging Errors on IIS7
May 04, 2012 10:29 PM|LINK
My app running on II7 is not logging errors. I do get the elmah.axd page, but no records
<sectionGroup name="elmah">
<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.MailSectionHandler, Elmah"/>
<section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah"/>
</sectionGroup>
<elmah>
<security allowRemoteAccess="1" />
<errorLog type="Elmah.XmlFileErrorLog, Elmah" logPath="~/App_Data" />
</elmah>
On System.Web HttpHandlers:
<add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah"/>
On HttpModules: <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah"/>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules runAllManagedModulesForAllRequests="true">
<remove name="ErrorLog"/>
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler"/>
</modules>
<handlers>
<add name="Elmah" verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" reCondition="integratedMode"/>
</handlers> </system.webServer>
ramiramilu
All-Star
95227 Points
14063 Posts
Re: ELMAH not logging Exceptions in IIS7?
May 05, 2012 08:02 AM|LINK
Elmah Discussion Group - https://groups.google.com/group/elmah/topics
Please post your question in there for more better answers...
Thanks,
JumpStart
madan535
Contributor
3217 Points
1179 Posts
Re: ELMAH not logging Exceptions in IIS7?
May 05, 2012 08:25 AM|LINK
Try this
http://stackoverflow.com/questions/933554/elmah-not-working-with-asp-net-site/1175023#1175023
sukumarraju
All-Star
16931 Points
2999 Posts
Re: ELMAH not Logging Errors on IIS7
May 05, 2012 12:36 PM|LINK
No records in database?
Refer http://www.asp.net/web-forms/tutorials/deployment/logging-error-details-with-elmah-cs
Application Architecture Guide 2.0
My Blog
Twitter
lesponce
Member
108 Points
313 Posts
Re: ELMAH not Logging Errors on IIS7
May 05, 2012 03:32 PM|LINK
same deal here, I do get the page... bu no records. I added a record that was creating in my development box and it shows. So the issue is that when I do the same test scenario, the error doesn't get logged in the production server which is using IIS7.
lesponce
Member
108 Points
313 Posts
Re: ELMAH not logging Exceptions in IIS7?
May 05, 2012 03:39 PM|LINK
I tried that madan and it doesn't work. :( The page gets displayed with no records.
markfitzme
Star
14317 Points
2214 Posts
Re: ELMAH not logging Exceptions in IIS7?
May 05, 2012 04:32 PM|LINK
Are you using classic or integrated app pool? Check if it's classic. If it is then your httpmodules and httphandlers won't be set because that's an integrated definition and not a classic definition.
paindaasp
Star
12050 Points
2034 Posts
Re: ELMAH not logging Exceptions in IIS7?
May 05, 2012 04:33 PM|LINK
Where are your records being saved, SQL Server? If so, what is your connection string?
lesponce
Member
108 Points
313 Posts
Re: ELMAH not logging Exceptions in IIS7?
May 05, 2012 04:36 PM|LINK
I'm not sure if classic or integrated app pool. I have to check on that on the server. How do I check that?
I tried httpmodules and httphandlers because I saw a posting of someone having the same issue and did that.
So where do I check if classic or integreated? So if it's classic, what should I do based on the code that I got?
Thx for your help!
lesponce
Member
108 Points
313 Posts
Re: ELMAH not logging Exceptions in IIS7?
May 05, 2012 04:39 PM|LINK
no, I got a App_Code directory where ELMAH was dumping the errors in an xml file in my development box, which it worked perfect, but when I deployed the code to the server I get the ELMAH page, but it doestn't log the exception errors. I get No Records.... at least I get the elmah page (axd).