jglisson / elmah

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

Having system.web and system.webServer elements within a location element in web.config causes a problem when installing/updating elmah. #245

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Wrap the system.web and system.webServer elements in web.config in a 
<location path="." inheritInChildApplications="false"></location>
2. Install or update elmah

What is the expected output? What do you see instead?
View web.config and you will see new system.web and system.webServer elements 
causing an unwanted duplication.

Basically I wrapped my system.web and system.webServer with the location 
element to stop child applications in iis trying to inherit from the parent 
application. 
http://www.kowitz.net/archive/2007/05/16/stopping-asp-net-web-config-inheritance
. Elmah obviously doesn't check for this and re-adds these elements causing a 
duplication and error in the application once you attempt to run it.

Original issue reported on code.google.com by tpbri...@gmail.com on 9 Aug 2011 at 1:57

GoogleCodeExporter commented 8 years ago
Unfortunately that a limitation with NuGet as it doesn't cater for 
transformations.
However we will shortly be releasing a new package that wraps the handler in a 
<location> element as this is more secure.

Original comment by jamesdriscoll71 on 19 Feb 2012 at 12:07