I have a C# app that connects to a SQL Server .mdf
database file that sits in the root of my apps directory. The app is distributed to other users in a company. They are receiving the following error:
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
Not all users are getting this error. I am assuming it is a security error. Below is my connection string. Any idea what is causing this issue and how can I resolve it?
<add name="EditorConnectionString"
connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Resources.mdf;Integrated Security=True;User Instance=True;Persist Security Info=true;Connection Timeout=130"
providerName="System.Data.SqlClient" />