0

Please or Register to create posts and topics.

Cannot Login

Project Builds in VS2017 but cannot login using credentials.  Get Unable to login (Error: Internal Server Error).

rcarrico has reacted to this post.
rcarrico

Check in the log files (from the log folder). You'll see details of the error there.

Send me a copy of the latest error file if you're still having issues

rcarrico has reacted to this post.
rcarrico

Using SQL Server 2016 - Below is the contents of the log.  I changed from the default (localdb) to my db server in appsettings.json

I also created localdb named TTBAspCore but still no luck

"DefaultConnection": "Server=TTBAlien51;Database=TTBAspCore;Trusted_Connection=True;MultipleActiveResultSets=true"

Any idea?

2018-02-02T22:23:30.2397289-05:00  [INF] Entity Framework Core "2.0.1-rtm-125" initialized '"ApplicationDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "MigrationsAssembly=TTBAspCore " (9958f5bb)

2018-02-02T22:23:37.7705823-05:00  [INF] webpack built 5e34265d26c1b84135bc in 7973ms (ab09aae9)

2018-02-02T22:23:45.0240380-05:00  [FTL] Error whilst creating and seeding database (944fb156)

System.AggregateException: One or more errors occurred. (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.

)) ---> 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. Cannot create an automatic instance. See the Windows Application event log for error details.

) ---> System.ComponentModel.Win32Exception: Unknown error (0x89c50118)

--- End of inner exception stack trace ---

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.WaitForPendingOpen()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.<OpenAsync>d__34.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()

at Microsoft.EntityFrameworkCore.Storage.Internal.SqlServerDatabaseCreator.<>c__DisplayClass20_0.<<ExistsAsync>b__0>d.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at Microsoft.EntityFrameworkCore.Storage.Internal.SqlServerDatabaseCreator.<>c__DisplayClass20_0.<<ExistsAsync>b__0>d.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

The error message indicates this is strictly a configuration issue

"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"

Check that the server "TTBAlien51" actually exists (i.e no typos in the naming) and is running and no firewall is blocking access.

If this fails you might try swapping Hostname for an IP address.

Also try to see if you can login using SQL Management Studio with Windows Authentication (since you specified Integrated Security) to the server.

rcarrico has reacted to this post.
rcarrico