-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System.ExecutionEngineException or System.NullReferenceException in DetectChanges #33763
Comments
Sometimes I get even more nonsensical errors:
This makes absolutely no sense to me. |
Especially the But otherwise this issue is lacking enough information for us to be able to fully understand what is happening. Please attach a small, runnable project or post a small, runnable code listing that reproduces what you are seeing so that we can investigate. |
OK, this is was 2 weeks o ordeal just to find out all these was happening from a combination of not having the latest Bios fixes for i9-14900KS and some corrupted system files ... Luckily Intel stepped up with a bios fix. |
Glad to hear that. |
File a bug
I've getting very strange and completely random
System.ExecutionEngineException
orSystem.InvalidCastException
orSystem.NullReferenceException
The frequency of these exceptions is extremly high in debug mode and significanly lower in release mode.
Include stack traces
Use triple-tick fences for stack traces. For example:
Another trace from the logger:
Include verbose output
Using project directory 'C:\Work[redacted]\DA[redacted]Tenant.DataAccess'.
Remaining arguments: .
Finding DbContext classes...
Finding IDesignTimeDbContextFactory implementations...
Finding application service provider in assembly [redacted].Tenant.DataAccess'...
Finding Microsoft.Extensions.Hosting service provider...
No static method 'CreateHostBuilder(string[])' was found on class 'Program'.
No application service provider was found.
Finding DbContext classes in the project...
Found DbContext '[redacted]Context'.
[redacted].Tenant.DataAccess.[redacted]Context
Include provider and version information
EF Core version:
Database provider: Microsoft.EntityFrameworkCore.SqlServer 8.0.5
Target framework: .NET 8.0
Operating system: Windows 10 (Hyper-V VM, Host Windows 11 Pro)
IDE: Visual Studio 2022 17.8.3
The text was updated successfully, but these errors were encountered: