Closed as not planned
Description
Repro:
- Install .NET SDK 6.0.100-rtm.21505.64
- Install VS Version 17.0.0 Preview 5.0 [31803.31.main]
- File -> New project, choose ASP.NET Core with React
- ... with Individual Auth
- Ctrl+F5 to start it running
- In the browser, click Login
Expected:
- Something like a login prompt
Actual:
Based on the console output, this is probably just because the DB hasn't been created yet, but people don't have an easy way to either find that out or know how to fix it.
System.InvalidOperationException: An exception has been raised that is likely due to a transient failure. Consider enabling transient error resiliency by adding 'EnableRetryOnFailure' to the 'UseSqlServer' call.
---> Microsoft.Data.SqlClient.SqlException (0x80131904): Cannot open database "aspnet-MissionLog-53bc9b9d-9d6a-45d4-8429-2a2761773502" requested by the login. The login failed.
Login failed for user 'username'.
at Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
Update: Yes, running dotnet ef database update
fixes it. But still, we should show the UI in the browser that prompts the developer to apply the migrations.