Click here to Skip to main content
15,867,488 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am not fantastic when it comes to managing the IIS servers.
I need to install a new .net 4 app on an existing IIS 7 site.

I successfully completed an installation on development and test server; but am stumped on the real thing.

Using IIS content view to browse to a simple page - i can detect an error message that reveals its inheriting web config from the default site. The error message indicates that their are duplicate entries in the web config.

HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.



The duplicate entry IS within the default site itself - yet the default site functioning happily?

The error message is referencing this block of "parent" default site config

XML
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
  12:         <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
  13:         <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">


Within the parent default site - I see
the only potential duplicate is within system.web/httphandlers
XML
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />


and system webserver /httphandlers
XML
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />



to my own config I have attempted to add
XML
</clear>
to system.web httphandlers and to system.webserver handlers
Next I tried to "remove" the duplicate line within my own config
Both attempts - do not override the duplicate in the parent
Any other ideas?
Thanks
Lisa
Posted

Similar question with answer
HTTP Error 500.19 - Internal Server Error[^]
 
Share this answer
 
Thank you for your solutions.

In this case - I believe items must have been added to the web server default site to support MVC - that is no longer needed?

I have been able to remove the offending duplicate line from the default site without causing it to suffer.

The new subsite is able to function without rejecting inheritance of sections it originally didnt declare or need.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900