Article ID: 128259, created on Feb 6, 2016, last review on Feb 6, 2016

  • Applies to:
  • Plesk for Windows


Website with database on MSSQL server shows 500.19 Internal Server Error, error code 0x8007000d.

HTTP Error 500.19 - Internal Server Error  

Error Code

Config Error
   Configuration file is not well-formed XML  

Config File

Config Error
   Configuration file is not well-formed XML  

Config Source:
13:   <add name="SQL DB" connectionString="Data Source=.\MSSQLSERVER2014;Initial Catalog=db-name;Integrated Security=False;User Id=UserName;Password=MyPass&word;" providerName="System.Data.SqlClient" /> 


Special characters in connection string were not escaped.


Since the web.config is XML, the following special characters have to be escaped:

&amp;  ->  & ampersand, U+0026
&lt;   ->  < left angle bracket, less-than sign, U+003C
&gt;   ->  > right angle bracket, greater-than sign, U+003E
&quot; ->  " quotation mark, U+0022
&apos; ->  ' apostrophe, U+0027 

Edit web.config file and replace all special characters according to the table above. Example, MyPass&word = MyPass&amp;word

Search Words


how to pass ampersand in query string


connectionstring ampersand in password

Special characters

Configuration file is not well-formed XML

a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c 85a92ca67f2200d36506862eaa6ed6b8

Email subscription for changes to this article
Save as PDF