question

MatejKr-6985 avatar image
0 Votes"
MatejKr-6985 asked ChaoDeng-MSFT edited

ASP.NET Core 5.0.9 with EntityFrameworkCore 5.0.9 strange behavior on scaffolding new Razor page

I have updated EntityFrameworkCore and its dependencies to version 5.0.9 (.Design, .Tools. SqlServer), as well as installed all .Net 5.0.9 packages.
On Scaffolding new Razor Page, dependency EntityFrameworkCore.SqlServer and EntityFrameworkCore.Tools get downgraded to version 5.0.8.
Regarding the downgrade, I always get the error "Could not load file or assembly 'Microsoft.EntityFrameworkCore.SqlServer, Version=5.0.9.0".

Running the application and navigating to the page using data from Sql always returns error EntityFrameworkCore.dll -> object reference not set to an instance of an object

Any advice?
Regards!

dotnet-entity-framework-coredotnet-aspnet-core-razor
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

The only solution so far was to completly downgrade to version 5.0.8 (all packages)

0 Votes 0 ·

Hi @MatejKr-6985 ,
I have the same version as yours, but I can work normally, can you show your csproj version information?

0 Votes 0 ·

0 Answers