Unable to restore content for a domain: System.Runtime.InteropServices.COMException

Created:

2017-02-14 07:21:33 UTC

Modified:

2017-08-08 13:24:57 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Unable to restore content for a domain: System.Runtime.InteropServices.COMException

Applicable to:

  • Plesk 12.5 for Windows

Symptoms

The backup restored with the following warnings:

Warning: Restore hosting "example.com"
4be2213b-4ddc-4694-a4b2-3d44e3b116dc Unable to restore error docs for domain 'example.com' ( Error in execute ''C:\Program Files (x86)\Parallels\Plesk\admin\bin64\websrvmng' --set-error-docs "--vhost-name=example.com" "--error-docs=C:\Program Files (x86)\Parallels\Plesk\PrivateTemp\tmp1970.tmp" --via-file': Filename: \\?\C:\Inetpub\vhosts\example.com\httpdocs\web.config Line number: 14 Error: There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined In module Exception type: System.Runtime.InteropServices.COMException at Microsoft.Web.Administration.Interop.AppHostWritableAdminManager.GetAdminSection(String bstrSectionName, String bstrSectionPath) at Microsoft.Web.Administration.Configuration.GetSectionInternal(ConfigurationSection section, String sectionPath, String locationPath) at ServerManagerFactory.getSectionInternalWebconfig(String siteName, String virtualPath, String sectionPath, Type sectionType, String location) at ServerManagerFactory.getHttpErrorSectionWebconfig(String siteName, String virtualPath, String location) at IIS75HttpErrors.getSection(IIS75HttpErrors* ) at IIS7HttpErrors.getCollection(IIS7HttpErrors* ) at IIS7HttpErrors.set(IIS7HttpErrors* , list >* errors) at setCustomErrors(example.com, )(WebServerManager::setCustomErrors line 1590) at execute console command --set-error-docs(vconsoleapp::start line 100) at execute "C:\Program Files (x86)\Parallels\Plesk\admin\bin64\websrvmng" --set-error-docs "--vhost-name=example.com" "--error-docs=C:\Program Files (x86)\Parallels\Plesk\PrivateTemp\tmp1970.tmp" --via-file(vconsoleapp::run line 117) )

Or:

Warning: Restore hosting "example.com"
b1102da5-1007-420a-831c-f5014e149124 Cannot RestoreDomainContent of domain 'example.com', cid='[error_docs_cfg]'psadumpschema.ContentFile' ( psadumpagent.UtilExecutionException: Error in execute ''C:\Program Files (x86)\Parallels\Plesk\admin\bin64\websrvmng' --set-error-docs "--vhost-name=example.com" "--error-docs=C:\Program Files (x86)\Parallels\Plesk\PrivateTemp\tmp1970.tmp" --via-file': Filename: \\?\C:\Inetpub\vhosts\example.com\httpdocs\web.config Line number: 14 Error: There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined In module Exception type: System.Runtime.InteropServices.COMException at Microsoft.Web.Administration.Interop.AppHostWritableAdminManager.GetAdminSection(String bstrSectionName, String bstrSectionPath) at Microsoft.Web.Administration.Configuration.GetSectionInternal(ConfigurationSection section, String sectionPath, String locationPath) at ServerManagerFactory.getSectionInternalWebconfig(String siteName, String virtualPath, String sectionPath, Type sectionType, String location) at ServerManagerFactory.getHttpErrorSectionWebconfig(String siteName, String virtualPath, String location) at IIS75HttpErrors.getSection(IIS75HttpErrors* ) at IIS7HttpErrors.getCollection(IIS7HttpErrors* ) at IIS7HttpErrors.set(IIS7HttpErrors* , list >* errors) at setCustomErrors(example.com, )(WebServerManager::setCustomErrors line 1590) at execute console command --set-error-docs(vconsoleapp::start line 100) at execute "C:\Program Files (x86)\Parallels\Plesk\admin\bin64\websrvmng" --set-error-docs "--vhost-name=example.com" "--error-docs=C:\Program Files (x86)\Parallels\Plesk\PrivateTemp\tmp1970.tmp" --via-file(vconsoleapp::run line 117) at psadumpagent.CommonEnv.execUtil(String utilName, String Arguments, String inputString, Hashtable envs, Boolean utf8Utility) at psadumpagent.RestoreEnv.CommonRestoreFunction.restoreErrorDocs(String domain, String subdom, String errorDocsFile, Version originalDumpVersion) at psadumpagent.RestoreEnv.RestoreDomainContent(Cid cid, String domainName, String subDomainName, IList`1 ignoredDirs) )

Cause

ASP.NET version that is using for the website is not installed on the server.

Resolution

  1. Open Server Manager and click Add roles and features .
  2. Navigate to Server Roles and install needed ASP.NET version under Web Server (IIS) > Web Server > Application Development .
  3. Restore the backup again.
Have more questions? Submit a request
Please sign in to leave a comment.