I have just finished an app that is using a database.mdf
. Everything is working well, but when I open the app on a different computer, I'm getting the following error:
"A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) "
Here is the database connection string:
Data Source=(LocalDB)\v11.0;AttachDbFilename=Z:\Items\ItemDatabase.mdf;Integrated Security=True;MultipleActiveResultSets=True;Connect Timeout=60
All computers have this network storage drive already mapped to the computer, but it only seems to work on my computer.
I have tried the double \\
but nothing worked. The names all match. What could it be?
Thanks
Z:
drive mapped to the exact same share? IfZ:
is mapped in a logon screen, and program is running as different user, could it be thatZ:
exists, but is pointing to a different folder? – LB2