Created
October 12, 2017 17:24
-
-
Save dahlbyk/c6757c1c8b0fec96fbc3fa640508836c to your computer and use it in GitHub Desktop.
EF Migration LocalDB Error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS> Update-Database -Verbose | |
Using project 'src\RedactedWeb'. | |
Using startup project 'src\RedactedWeb'. | |
Build started... | |
Build succeeded. | |
C:\Program Files\dotnet\dotnet.exe exec --depsfile C:\Dev\Redacted3\src\RedactedWeb\bin\Debug\netcoreapp1.1\RedactedWeb.deps.json --additionalprobingpath C:\Users\Keith\.nuget\packages --runtimeconfig C:\Dev\Redacted3\src\RedactedWeb\bin\Debug\netcoreapp1.1\RedactedWeb.runtimeconfig.json C:\Users\Keith\.nuget\packages\microsoft.entityframeworkcore.tools\1.1.2\tools\netcoreapp1.0\ef.dll database update --verbose --no-color --prefix-output --assembly C:\Dev\Redacted3\src\RedactedWeb\bin\Debug\netcoreapp1.1\RedactedWeb.dll --startup-assembly C:\Dev\Redacted3\src\RedactedWeb\bin\Debug\netcoreapp1.1\RedactedWeb.dll --project-dir C:\Dev\Redacted3\src\RedactedWeb --content-root C:\Dev\Redacted3\src\RedactedWeb --data-dir C:\Dev\Redacted3\src\RedactedWeb\bin\Debug\netcoreapp1.1\ --root-namespace RedactedWeb | |
Using assembly 'RedactedWeb'. | |
Using startup assembly 'RedactedWeb'. | |
Using application base 'C:\Dev\Redacted3\src\RedactedWeb\bin\Debug\netcoreapp1.1'. | |
Using content root 'C:\Dev\Redacted3\src\RedactedWeb'. | |
Using root namespace 'RedactedWeb'. | |
Using project directory 'C:\Dev\Redacted3\src\RedactedWeb'. | |
Using data directory 'C:\Dev\Redacted3\src\RedactedWeb\bin\Debug\netcoreapp1.1\'. | |
Finding DbContext classes... | |
Using context 'SqlDbContext'. | |
Using database 'RainDrops' on server '(localdb)\\MSSQLLocalDB'. | |
Opening connection to database 'RainDrops' on server '(localdb)\\MSSQLLocalDB'. | |
System.Data.SqlClient.SqlException: 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. Specified LocalDB instance name is invalid. | |
) | |
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling) | |
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions) | |
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions) | |
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) | |
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) | |
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) | |
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) | |
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) | |
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) | |
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) | |
at System.Data.SqlClient.SqlConnection.Open() | |
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open() | |
at Microsoft.EntityFrameworkCore.Storage.Internal.SqlServerDatabaseCreator.<>c__DisplayClass11_0.<Exists>b__0(DateTime giveUp) | |
at Microsoft.EntityFrameworkCore.Storage.Internal.SqlServerExecutionStrategy.Execute[TState,TResult](Func`2 operation, Func`2 verifySucceeded, TState state) | |
at Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.Execute[TState,TResult](IExecutionStrategy strategy, Func`2 operation, TState state) | |
at Microsoft.EntityFrameworkCore.Migrations.HistoryRepository.Exists() | |
at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.Migrate(String targetMigration) | |
at Microsoft.EntityFrameworkCore.Design.Internal.MigrationsOperations.UpdateDatabase(String targetMigration, String contextType) | |
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.UpdateDatabase.<>c__DisplayClass0_1.<.ctor>b__0() | |
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action) | |
ClientConnectionId:00000000-0000-0000-0000-000000000000 | |
Error Number:-1983577829,State:0,Class:20 | |
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. Specified LocalDB instance name is invalid. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment