I am trying to have access to my project from the browser, I have put it on my server .
My database is on SQL Server 2008 R2 .
When I try to login I have always this exception :
Invalid value for key 'attachdbfilename'
I think the problem is from my connection string but I can't fix it . I tried in many ways .
<connectionStrings>
<remove name="LocalSqlServer" />
<add name="LocalSqlServer"
connectionString="data source=.\SQLEXPRESS;Initial Catalog=DataUi;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|DataUi.mdf;User Instance=true"
providerName="System.Data.SqlClient" />
</connectionStrings>
Can someone help me ?
Thank you very much .