Closed mark4asp closed 6 years ago
Apologies. I think the solution to this problem is to look in the app.config in the test project. It has a line: <parameter value="v11.0" />
If you do not have that instance, create it at the command line, by running: sqllocaldb create "v11.0"
It fails because "Creation of LocalDB instance "v11.0" failed because of the following error: The specified LocalDB version is not available on this computer."
So I modified the app.config to specify <parameter value="v12.0" />
Then created the v12.0 at the command line, with: sqllocaldb create "v12.0"
Now the tests all pass.
During the execution of Bootstrapper.Initialize()
I get a System.Data.SqlClient.SqlException bubbling up :
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: 50 - Local Database Runtime error occurred. Cannot create an automatic instance. See the Windows Application event log for error details.
PS 1: My Sql Server is Express 2014, with a server name HostName\SQLEXPRESS