Click here to Skip to main content
15,902,112 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
We have a WCF Service running fine in iis 7.We are migrating to windows 8 server.We deployed the WCF Service in iis 8.When browsing the SVC File getting the below Configuration Error

"There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined "

Config Source section in the Error page
XML
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
   <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
   <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
Posted

1 solution

In ASP.NET 3.5 and 4.0 WebExtension namespace (Ajax services) is already enabled by default. This might lead to an error that the entries are duplicated. Just remove/comment the AJAX extension related entries and it should be good.

Refer:
ASP.NET known breaking changes as reported by Microsoft[^]
There is a duplicate 'system.web.extensions/scripting..[^]

UPDATE: Just came across this blog entry, can look at this too: IIS deployment error: There is a duplicate scriptResourceHandler section defined[^]
 
Share this answer
 
v2
Comments
peru j 26-Jun-12 6:18am    
Thanks...Yes i commented it worked for WCF service. Same Error am getting for a web application after removing when i browse default.aspx is not opening getting

"The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. "
Sandeep Mewara 26-Jun-12 6:31am    
Check the framework for Web project used! If it is still using old one that those configs would be required for it.

Further, 404 for what? Which page or resource requested returned as such?

peru j 26-Jun-12 7:24am    
using the latest framework not the old one. When i browse for Default.aspx am getting 404. Any idea ?>
Sandeep Mewara 26-Jun-12 12:53pm    
That is entirely different question and reason. Please close this question accepting answer and create a new one for other issue.

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