سؤال

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

هل كانت مفيدة؟

المحلول

The computer which you are trying to run the application must have the LocalDB installed.

You can download it from this link: http://www.microsoft.com/en-us/download/details.aspx?id=29062

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top