Unable to add Connection String in ASP.NET Settings: Error: aspnetcfg failed: Unable to cast object of type 'System.Xml.XmlComment' to type 'System.Xml.XmlElement'.

Refers to:

  • Plesk 12.0 for Windows

Created:

2016-11-16 12:46:49 UTC

Modified:

2016-12-21 19:11:39 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to add Connection String in ASP.NET Settings: Error: aspnetcfg failed: Unable to cast object of type 'System.Xml.XmlComment' to type 'System.Xml.XmlElement'.

Symptoms

Unable to add Connection String in ASP.NET Settings under Subscription if web.config of the domain contains comment like:

<!-- <add name="DefaultServer" connectionString="test"/> -->

The following error occurs:

Error: aspnetcfg failed: Unable to cast object of type 'System.Xml.XmlComment' to type 'System.Xml.XmlElement'.

(Error code 1)

Cause

This issue has been considered as software issue #PPPM-3943 and will be fixed in future product updates.

Workaround

There are two possible ways:

  1. Put the attached file aspnetconfiguration.dll to %plesk_bin% . Do not forget to backup the original file before.
  2. Upgrade to Plesk 12.5, since this issue has been fixed in Plesk 12.5 MU6.
Have more questions? Submit a request
Please sign in to leave a comment.