I just upgraded an ASP.NET Core 2.2 project to ASP.NET Core 3.0 and my OData endpoints refuse to work. During startup, I get the following error:
System.TypeLoadException: 'Could not load type 'Microsoft.AspNetCore.Mvc.Internal.ActionConstraintCache' from assembly 'Microsoft.AspNetCore.Mvc.Core, Version=3.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.'
How does one work around this type resolution issue?
I've been trying to fight this error all day. Finally found out the problem: Odata is simply not compatible yet with .NET Core 3.0. Follow this thread for a bit more information.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With