- Plesk 12.0 for Windows
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)
This issue has been considered as software issue #PPPM-3943 and will be fixed in future product updates.
There are two possible ways:
Put the attached file
%plesk_bin%. Do not forget to backup the original file before.
- Upgrade to Plesk 12.5, since this issue has been fixed in Plesk 12.5 MU6.