Is it possible to have an ampersand sign in an appSettings key? error: web.config value is not defined Is it possible to have an ampersand sign in an appSettings key? error: web.config value is not defined asp.net asp.net

Is it possible to have an ampersand sign in an appSettings key? error: web.config value is not defined


You just need to use XML encoding here I believe - so & becomes &


Try &<appSettings>  <add key="Foo" value="http://foo.bar.com/?app=xxx&FormName=yyy" /></appSettings>