0

I use visual studio 2015 ,I create project with service based database when i published my project as exe and install on my computer it running but when install on other computer give error error :50

other computer give this error error

i installed localDB on other computers but error is same -- my connection string connectionString="Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\DBUBMP.mdf;Integrated Security=True" providerName="System.Data.SqlClient"

4
  • Is SQL Server Express installed on the target computer?
    – Dai
    Apr 25, 2019 at 17:56
  • yes , i installed SQL server on target computer . Apr 25, 2019 at 17:59
  • Do you have a LocalDB\MSSQLLocalDB instance on the machine. C:\Users\[User Name]\AppData\Local\Microsoft\Microsoft SQL Server Local DB\Instances\MSSQLLocalDB ? And is your DBUBMP.mdf there? Apr 25, 2019 at 18:26
  • DBUBMP.mdf not found Apr 26, 2019 at 8:35

2 Answers 2

0

If you have installed sql Management server is installed, start it up and look if the local database user/pwd are in order. you can there see also which name the database engine answers.

you should also look at the configuration manager if tcp ip is activated.

you can see how you can deplay databases with your app How to deploy application with sql server database on clients

0

I had this issue before and I got it fixed by adding the LocalDB feature while I installed SQL Server from the end of the setup wizard. Look for customize and make sure localDB is ticked.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.