Closed v-cazhang closed 5 months ago
The app was trying to hit the database before it was running, so an error was logged. But then it retried and eventually succeeded, correct?
This seems like it is by design.
Closing as the above question wasn't answered.
REGRESSION INFO: Worked fine on Aspire.ProjectTemplates.8.0.0-preview.3.24105.21
INSTALL STEPS
REPRO STEPS
In the VS, create a new project > Blazor Web App > .NET 8.0 > None > check 'Enlist in.NET Aspire orchestration'> Create
Right-click the web project > Add > Class > name it as SupportTicket.cs, replace with following codes:
Right-click the web project > Add > Class > name it as TicketDbContext.cs, replace with following codes:
Right-click web project > Add > .NET Aspire Component > install 'Aspire.Microsoft.EntityFrameworkCore.SqlServer'
Open Program.cs of web project, add following code:
Update the Program.cs file with the following code to automatically run Entity Framework migrations during startup.
Open Program.cs of AppHost project, replace with following codes:
Build and F5.
Click 'Structured logs' on the dasboard.
ACTUAL There shows some warnings in the 'Structured logs' page.
EXPECTED No warnings