I have written a C#
program in Visual Studio 2010
. I use database for my program by add service-based Database in VS2010. I make setup by add setup item for program. In my computer the program installed successfully and run very good. but in another machine after installing program when I want to work with database of program, 1 exception happened:"the program can't find sql....." and some errors like this.
Connection string is: (in single line)
"Data Source =.\\SQLEXPRESS;
AttachDbFilename=|DataDirectory|\\database.mdf;
Integrated Security=True;
User Instance=True"
Also I included database.mdf file into setup files, but this problem has not been sloven. what's my connection string must be? Is this exception for that string?