I have an asp.net web application that I made in Visual Studio 2008. Everything worked just fine until I switched to VS 2010. When that happened, I started seeing some weird behavior with my database connection string. The string (edited, but format is the same) is as follows:
<add name="DBname" connectionString="Data Source=SomeText\SomeMoreText;Initial Catalog=DB;Integrated Security=True" providerName="System.Data.SqlClient"/>
The problem is with the SomeText\SomeMoreText part.
When I run this in the debugger, the '\' is changed into '\\'. This breaks everything.
My question, which probably has an extremely simple answer is this: How can I get VS2010 to treat the connection string like a normal string without trying to insert the extra slash?