question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception using .net 6

See original GitHub issue

When trying to run it with .net 6 and ef core 6.0.1 this throws an exception during startup.

System.MissingMethodException: Method not found: 'System.Type Microsoft.EntityFrameworkCore.Metadata.ITypeBase.get_ClrType()'.
   at Microsoft.EntityFrameworkCore.DbContextExtensions.AutoHistory[TAutoHistory](EntityEntry entry, Func`1 createHistoryFactory)
   at Microsoft.EntityFrameworkCore.DbContextExtensions.EnsureAutoHistory[TAutoHistory](DbContext context, Func`1 createHistoryFactory)
   at Microsoft.EntityFrameworkCore.DbContextExtensions.EnsureAutoHistory(DbContext context)

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:7
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
GeorgeLeitheadcommented, Apr 21, 2022

I’m still getting the error: System.MissingMethodException: Method not found: ‘System.Type Microsoft.EntityFrameworkCore.Metadata.ITypeBase.get_ClrType()’. Using:

  • Microsoft.EntityFrameworkCore" Version=“6.0.4”
  • Microsoft.EntityFrameworkCore.AutoHistory" Version=“5.0.8”
4reactions
lostatredrockcommented, Feb 2, 2022

I cloned the current repo, included this in my project and it solved this problem for me so guessing the project just needs a new build pushed to nuget for Net 6. Is this something in the works?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Global Exception Handling in .NET 6
Global exception handling allows us to organize all exception handling logic in one place. Thus, we can improve the readability of the action ......
Read more >
NET 6.0 - Global Error Handler Tutorial with Example
Handled exceptions are generated by application code and used to return friendly error messages, for example business logic or validation ...
Read more >
How to add Global Exception Handling in .NET 6 and 7
Add Global Exception Handling to .NET · Create the Web API from the template by Microsoft. · Install Dependencies. · Add Entity for...
Read more >
NET 6 - Web API Global Exceptions Handling
Exception Handling is a foundation that we need to consider while we are designing and building our application to have a stable application ......
Read more >
Implementation Of Global Exception Handling Using .NET ...
In this article, we will learn about global exception handling implementation using .NET Core 6 Web API step by step.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found