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"

Stephen Kennedy
  • 20,585
  • 22
  • 95
  • 108

2 Answers2

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

nbk
  • 45,398
  • 8
  • 30
  • 47
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.