I have developed a software for remind for my costumer what he want to do in future.
I can use it in my own laptop but when I create a setup file and install it in customer laptop it has some errors. when i use this software in my own laptop my connection string is
server=localhost;database=Reminderdatabase;Trusted_Connection=true;
and when I want to use it in customer laptop I use this connection string
@"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ReminderDatabase.mdf;Integrated Security=True;user instance=true;
and I installed SQL Server 2008 R2 on his laptop and .net framework 4.0.
Now when I want to connect to database an error occurred that say 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 instance name is correct and SQL Server is configured to allow remote connections.(provider: SQL Network Interfaces, error 26 - Error Locating Server/Instance Specified).
This confused me. I looked for it in more than 50 links but not good answer it gave to me. I do not have more time to learn and search for user instance or things like that and understand it. Please tell me what I must do to solve this error.
Thank you so much for your helping