Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path. Please make sure the user has a local user profile on the computer. The connection will be closed.
This is the error that I am getting. If I try to access the web site using the localhost it works fine. But, when I am usinfg it through the remote URL it throws this error.
I feel there is some thing wrong woth my web.config file.
The connection string I am using
In the C# code.....
SqlConnection conn = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Thesis_Database.mdf;Integrated Security=True;User Instance=True");
Please Help.... SqlDataReader rdr = null;