Everything works fine on the computer that I built the application on, both the database and the program were created in vs2017. When I install the application on another computer that has sql but not vs installed, it gives me 'error 52 a network related issue has occurred unable to connect to local database.' How am I supposed to get it to see the database on another users computer other than my own? I was able to successfully get my app to work on a different computer that has vs and sql installed, but I dont want to install 50GB worth of excess on every computer.
Below is my connection string
<add name="ExagridEntities" connectionString="data source=(LocalDB)\MSSQLLocalDB;AttachDBFilename=|DataDirectory|Exagrid.mdf;" providerName="System.Data.EntityClient" />
I have tried publishing from visual studio by clicking project>publish and also creating a setup project where I put the mdf file in with the application files but they both returned the same error 52.
UPDATE
When I installed visual studio on one of the computers my program ran just fine. Does anyone know what package I need so I can just run the program without having to install vs?