guna s

guna s

  • 2.2k
  • 12
  • 6.6k

How to Deploy a setup with database in another machine -- Urgent

Dec 20 2011 2:05 AM


Hi

I have attached a screenshot of the error iam facing after installing the setup.exe file in another machine and on opening the project, it shows the error in the screenshot when i click the login button..



Note:

I have included mdf file in my project using the connection string


 SqlConnection con = new SqlConnection("Data Source=.;AttachDbFilename=|DataDirectory|\\project.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True");

after this i created the setup file..

can u pl help me how to create setup file with sql database

Thanks in advance.





Answers (8)