Skip to content

Deploying windows application project

prabhu raj

Asked Jul 19, 2008, 1:09 AM EDT1 answer
Share
LinkedInX
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 to access specified database path.

can anyone tell me how to fix this bug detail.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Bechir Bejaoui
    0
    May be because of D:\  verify if the drive is C:\  if it is C then go to the configuration file within the application it is normaly named yourApplicationname.exe.config open it and reach the <connectionstring> tag then change D par C
    0