iam using following connection string (C#)

SqlConnection con = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=D:\WindowsApplication1\Database1.mdf;
Integrated Security=True;User Instance=True");

i deployed my project and i installed into client machine.
after installed into client machine i cant able access the database..
Error:
cant able access specified database path.

can anyone tell me how to fix this bug detail.

Hi,

Seems to me that you need to change the AttachDbFilename=D:\WindowsApplication1\Database1.mdf; to the path where is the database on the server.

Regards,
Camilo