Quantcast
Channel: General
Viewing all articles
Browse latest Browse all 7363

web.config malformed when & is used in string

$
0
0

I am getting an error in IIS7.5 when I use an & in a string value on my local dev machine. The line in question is like this:

<add key="connDB" value="Driver={MySQL ODBC 3.51 Driver};Server=localhost;Database=dbname;uid=root;pwd=kj&sxyt!jk;" />

The & in the password is causing issues "Configuration file is not well-formed XML". I've tried single quotes '' and double-double quotes """" around the password to no avail.

The file is encoded as UTF8. I've tried it as ANSI aswell.

Any other suggestions?


Viewing all articles
Browse latest Browse all 7363

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>