Home > Enterprise >  Unable to create an object of type 'ApplicationDbContex' Blazor ASP.NET Core 6.0
Unable to create an object of type 'ApplicationDbContex' Blazor ASP.NET Core 6.0

Time:09-17

I'm creating a web application in Blazor ASP.NET Core web hosted with ASP.NET Core 6 and when I'm migrating the database I'm getting this error:

Unable to create an object of type 'ApplicationDbContext'. For the different patterns supported at design time, see Solution

I solved my problem by checking the include prerelease option since I'm using ASP.NET Core 6 in a prerelease version but I was trying to migrate with the current stable version. So I hope this can help you.

  • Related