This question already has an answer here:

I have this line in app.config file:

<add key="MY_KEY" value="}N7+6}s&J*?C" />

However it is generating these errors:

enter image description here

The value }N7+6}s&J*?C is actually a password for something.

I also tried changing & to &amp; but in that case also I get the error:

Error   1   Application Configuration file "App.config" is invalid.
An error occurred while parsing EntityName. Line 54, position 51.   
D:\DBF Export\matchDBF\App.config   54  51  matchDBF

Does anyone have an idea on how do I store that value in config file?

Related posts

Recent Viewed