Applicable to:
- Plesk for Windows
Symptoms
-
Plesk Migration fails with error:
PLESK_ERROR: example.com
stdout: Filename: \\?\D:\Inetpub\vhosts\example.com\httpdocs\web.config
Line number: 10
Error: There is a duplicate 'example' section defined -
Cannot create domain backup in Plesk:
PLESK_ERROR: Unable to back up configuration of error documents.
Error: Failed to exec websrvmng:
Exit code: 1: Filename: \\?\C:\Inetpub\vhosts\example.com\web.config
Line number: 6 Error: There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined -
An attempt to run
plesk repair web example.com
fails and website becomes not accessible:CONFIG_TEXT: HTTP Error 500.19 - Internal Server Error
...
Config Error: There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined
Config File: \\?\D:\Inetpub\vhosts\example.com\custom_dir\testdatabase\web.config
Config Source:
13: <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=*********">
Cause
There is a duplicate section in the web.config file and in the upper-level configuration file.
Resolution
- Log in to source Plesk panel
-
Go to Domains > example.com > File Manager
-
Open the file mentioned in the error message using a text editor and comment out the duplicate line of the mentioned number by
<!--
at the beginning
and-->
at the end of the line.
For example:CONFIG_TEXT: <!-- <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=*********"> -->
Comments
0 comments
Please sign in to leave a comment.