0

I am unable to use a password in my connection string which has password with "&" in it, with it my service throws 500 internal server error.

When I remove "&" from the password, service runs but obviously i wont connect to Database.

e.g.

< add name="conn" connectionString="Data Source=DFF1234;Initial Catalog=PONJ1;User Id=PPID1;Password=POu&3mjl@sdRTYu" providerName="System.Data.SqlClient" >
Chase Florell
  • 46,378
  • 57
  • 186
  • 376
Akshay
  • 1,412
  • 2
  • 17
  • 51

1 Answers1

5

It will be xml decoded. So try &amp;

Marco
  • 22,856
  • 9
  • 75
  • 124
Abdullah Nehir
  • 1,027
  • 13
  • 23