I have the following connection string in my web.config
<add name="xxx"
connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=xxx;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\xxx.mdf"
providerName="System.Data.SqlClient" />
I have now moved my mdf file from:
C:\K\ST18 Mar 4\WebUx\App_Data\xxx.mdf
to:
C:\K\ST18 Mar 4\xxx.Data.Store\App_Data\xxx.mdf
I tried to put that into the web.config but it will not accept the "C:\" etc.
How can I change my web config so the AttachDBFilename is correct. Note that xxx.Data.Store is a sister project within the same solution so I want to make my path go up one directory and then down into xxx.Data.Store\App_Data