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

If you receive the error below when you try and edit a websites settings in the control panel after you upload ASP.NET files to the website then see the details below:

There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined.
 
Firstly create a backup of the web.config file that you have uploaded. If you don't have a copy of the web.config file that Websitepanel created you can copy the code below and save it to a separate web.config file and upload it to your wwwroot directory:

 <?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <directoryBrowse enabled="false" />
        <defaultDocument>
            <files>
                <clear />
                <add value="Default.aspx" />
                <add value="index.php" />
                <add value="Default.htm" />
                <add value="Default.asp" />
                <add value="index.htm" />
            </files>
        </defaultDocument>
    </system.webServer>
</configuration>

You will upload this default web.config into your wwwroot folder and refresh your control panel so that it works again. Change your ASP.NET version in the control panel to 2.0 and click Update.

The ASP.NET versions issue is now resolved and you can now re-upload your orignal web.config file. 

  • 212 Users Found This Useful
Was this answer helpful?

Related Articles

404 Error when you have + (plus) character in your URLs

If you receive a 404 error when you have a + (plus) character in your URLs (usually through URL...

Sessions timeout too quickly - Session state issues.

If your sessions are expiring too quickly then please set the site to use ASP.Net State Server....

Error - It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.

If you receive this error when trying to run an application in a sub folder of your website then...

compilation debug="true"

Under no circumstances should any clients use the following option in their web.config files on...

Error - Validation of viewstate MAC failed.

If you get the following error in your ASP.NET application please follow the instructions below:...