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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.