Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 15940

C# : Cannot create razor page using Entity Framework Core

$
0
0

I created an ASP.NET Core 6 Razor pages project in Visual Studio 2022 and when I tried to create a razor page using Entity Framework (CRUD) in the Add new scaffolded item section, I get this error:

value cannot be null
parameter name: unconfiguredProjectCommonServices

I installed the following packages in my project:

  1. Microsoft.EntityFrameworkCore.Design (6.0.27)
  2. Microsoft.EntityFrameworkCore.SQLServer (6.0.27)
  3. Microsoft.VisualStudio.Web.CodeGeneration (6.0.16)
  4. Microsoft.EntityFrameworkCore (6.0.27)
  5. Microsoft.EntityFrameworkCore.Tools (6.0.27)

I've found nothing about this specific error so far, what is this error and how can I fix this ? Thanks in advance


Viewing all articles
Browse latest Browse all 15940

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>