+1-888-365-2779
Try Now
More in this section

Forums / Suggestions / Config Error There is a duplicate ’system.web.extensions/scripting/scriptResourceHandler’ section defined

Config Error There is a duplicate ’system.web.extensions/scripting/scriptResourceHandler’ section defined

6 posts, 0 answered
  1. wsstark
    wsstark avatar
    4 posts
    Registered:
    14 May 2010
    01 Sep 2010
    Link to this post
    I had recently upgraded IIS7 to ASP.Net 4.0 and had several problems as a result with my installation of Sitefinity 3.7 SP2.
    1) The error message that told me a had a duplicate scriptResourceHandler.  This was initially resolved by commenting out the handler in the web.config.  Then there were other errors which caused me to handle them in the same way (see code below).
    2) The second problem once I commented all of this code out was a problem related to adding controls and editing them.  I could not drag and drop controls onto a page nor could I edit already present controls.  This was caused by the changes I made in the web.config file.
    3) The third problem was that I could not use the Sitefinity workflow system to approve any changes that I did make.  All that occurred when I sent something for approval was another workflow error.  Again, caused by commenting out code.

    To resolve these problems I found a thread (http://forums.iis.net/t/1149226.aspx) that said to correct this problem meant that I would have to use the IIS7 Manager and change back the default Application Pool back to ASP/Net 2.0.  I did this then changed back the code to non-commented.  I restarted the IIS7 server and confirmed that this worked - it did! 

    To reset the Application Pool DefaultAppPool use the following steps.
        1) Open the IIS Manager.
        2) Expand the server nodes until the Application Pools icon appears.
        3) Double click on the DefaultAppPool icon
        4) Select a different .Net Framework Application (I changed from 4.0 to 2.0 and it worked fine).
        5) Restart the IIS Server by clicking on the localhost server name then, in the rightmost panel, click Restart.
        6) That is it!

    I hope this helps someone since it took me several hours to find the solution.


     (CODE for item #1)   

     

    <

     

     

    sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">

     

    <

     

     

    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">

     

    <!--

     

     

    <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>

     

    <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>

    <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>

    <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>

     

     

    -->

     

    </

     

     

    sectionGroup>

     

     

     

     

     

     

     

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    01 Sep 2010
    Link to this post
    Hi wsstark,

    Within 2-3 weeks we will release a SP of Sitefinity 3.7 that will support .NET Framework 4.0. Running an edition of Sitefinity over .NET Framework does not work properly.

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. mattc
    mattc avatar
    105 posts
    Registered:
    11 Aug 2007
    24 Sep 2010
    Link to this post
    Hi all

    I am trying to install the latest 3.7 SP4 and I'm still getting this duplicate message:

    There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined, although there isn't in web.config.

    I'm thinking of reinstalling IIS on the dev machine in case it's a historic issue..

    I am trying to run this under the Classic 4.0 app pool although I get the same error under integrated.

    Any ideas welcome.

    M
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    24 Sep 2010
    Link to this post
    Hi mattc,

    Duplicate sections could be result if you have nested applications and there is parent /child inheritance.

    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. mattc
    mattc avatar
    105 posts
    Registered:
    11 Aug 2007
    24 Sep 2010
    Link to this post
    Hi Ivan

    Nope there are no parent web configs, is just in the root of the Default Web Site.
    Odd as this wasn't an upgrade, there were no old versions of 3.x on there.

    I'm stuck at the moment, will continue to investigate though.

    M
  6. mattc
    mattc avatar
    105 posts
    Registered:
    11 Aug 2007
    29 Sep 2010
    Link to this post
    Hi all

    Just to update this, the problem turned out to be the handler mappings in IIS when changing between App Pools.
    I found that it I changed the App Pool I also had to click the "Revert to Parent" in the actions section of the Handler Mappings. Otherwise IIS seemed to get in a twist quite easily when trying different App Pools and configurations.

    HTH

    M
Register for webinar
6 posts, 0 answered