Skip to content
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

.net core 3.0 with ocelot loadtype error #1028

Closed
winlj opened this issue Sep 25, 2019 · 11 comments
Closed

.net core 3.0 with ocelot loadtype error #1028

winlj opened this issue Sep 25, 2019 · 11 comments

Comments

@winlj
Copy link

winlj commented Sep 25, 2019

.net core 3.0 last version

ocelot not run

error:
System.TypeLoadException:“Could not load type 'Microsoft.Extensions.DependencyInjection.MvcJsonMvcCoreBuilderExtensions' from assembly 'Microsoft.AspNetCore.Mvc.Formatters.Json, Version=3.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.”

startup.cs
services.AddControllers().AddNewtonsoftJson();
services.AddOcelot().AddConsul();

@pablopioli
Copy link

See
#1001

this is a known problem caused by Net Core changing the default Json encoder

@winlj
Copy link
Author

winlj commented Sep 27, 2019

See
#1001

this is a known problem caused by Net Core changing the default Json encoder

I set it exactly the same way, but still prompted the same error.

Microsoft.AspNetCore.Mvc.NewtonsoftJson3.0.0
Ocelot13.8.0-alpha0019

@naruto1227
Copy link

I also have this problem, setting up NewtonsoftJson3.0.0 is also useless

@geffzhang
Copy link
Contributor

Try tracking #1025 for updates.

@esofar
Copy link

esofar commented Oct 10, 2019

Try tracking #1025 for updates.

In other words, the .net core 3.0 still can't use ocelot now?

@rex-pj
Copy link

rex-pj commented Oct 10, 2019

Hi, did we already fixed this issue yet? or do we have any plans to update to Net Core 3.0?

@jondmcelroy
Copy link

Currently Ocelot does not work with DotNet Core 3.0, look at #1025 for status.

@Hbib-drif
Copy link

Same problem

@winlj
Copy link
Author

winlj commented Oct 25, 2019

Does anyone know when the author can solve this problem?

@jmezach
Copy link
Contributor

jmezach commented Oct 25, 2019

@winlj We have pull request #1025 ready to go which should fix this issue. We'll have to wait until one of the maintainers can merge it though.

@TomPallister
Copy link
Member

Ocelot.13.8.0.nupkg
Ocelot.Administration.13.8.0.nupkg
Ocelot.Cache.CacheManager.13.8.0.nupkg
Ocelot.Provider.Consul.13.8.0.nupkg
Ocelot.Provider.Eureka.13.8.0.nupkg
Ocelot.Provider.Kubernetes.13.8.0.nupkg
Ocelot.Provider.Polly.13.8.0.nupkg
Ocelot.Provider.Rafty.13.8.0.nupkg
Ocelot.Tracing.Butterfly.13.8.0.nupkg

Have just released these to NuGet. Should be available in 30 minutes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants