tyagimanoj12 / elmah

Automatically exported from code.google.com/p/elmah
Apache License 2.0
0 stars 0 forks source link

Elmah doesn't work with IIS7.5 Managed Pipeline Mode=Integrated #231

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. When using ELMAH with IIS7.5 and 
2. The Managed Pipeline Mode=Integrated
3.

What is the expected output? What do you see instead?
When the Managed Pipeline Mode is made to clasic then it works perfectly. So is 
there any configuration that may help using the product with Managed Pipeline 
Mode=Integrated on IIS7.5

What version of the product are you using? On what operating system?
I am using Elmah 1.2 On Windows 7 ultime 32 bit

Please provide any additional information below.
I yet to see any useful blog that is detailing the subject. 

Original issue reported on code.google.com by abdi.sha...@taysear.com on 28 May 2011 at 6:39

GoogleCodeExporter commented 9 years ago
Hosting .NET2.0 on IIS7 needs little adjustment. Elmah is developed using .Net 
2.0 and my host enviroment is IIS 7. 

I have resolved this problem by configuring the web.config in the following way:

Add the following line Under <system.webServer> and remove it from <system.web>
1.<modules>
<remove name="ErrorLog"/>
.....
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
</modules>

2. <handlers>
.....
<remove name="Elmah"/>
.....
<add name="Elmah" verb="POST,GET,HEAD" path="elmah.axd" 
type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode"/>

</handlers>

I mean the dots ..... that you may already have the sections and there might be 
some code already in their. So you don't need to recreate the sections instead 
apply the changes. 

For more information on the subject, please see the following article:
http://mvolo.com/blogs/serverside/archive/2007/12/08/IIS-7.0-Breaking-Changes-AS
P.NET-2.0-applications-Integrated-mode.aspx

Original comment by abdi.sha...@taysear.com on 30 May 2011 at 2:47

GoogleCodeExporter commented 9 years ago

Original comment by jamesdriscoll71 on 26 Feb 2012 at 10:38