hi
i have a win form application written c# in Visual Studio 2017.
it's a simple client registration form with Linq to SQL that uses a .mdf database file stored in the \bin\debug folder.
while running the application on my own machine there is no problem, and it runs fine. but when i create a setup for it using publish command of the VS and installing it on another machine ( for instance the virtual machine installed on this laptop), it shows an error message that it could not connect to the database.
this is the error message
i have a win form application written c# in Visual Studio 2017.
it's a simple client registration form with Linq to SQL that uses a .mdf database file stored in the \bin\debug folder.
while running the application on my own machine there is no problem, and it runs fine. but when i create a setup for it using publish command of the VS and installing it on another machine ( for instance the virtual machine installed on this laptop), it shows an error message that it could not connect to the database.
this is the error message