Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AspNetCore OData not working on .NET Core 3.0

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?

like image 533
Eniola Avatar asked Sep 26 '19 03:09

Eniola


1 Answers

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.

like image 99
user236580 Avatar answered Nov 10 '22 21:11

user236580