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

Cannot load MvcJsonMvcCoreBuilderExtensions' from assembly 'Microsoft.AspNetCore.Mvc.Formatters.Json, Version=6.0.0.0 #56

Open
ValentinMil opened this issue Sep 19, 2022 · 3 comments

Comments

@ValentinMil
Copy link

Hi,

We have recently updated from .Net Core 2.2 to .Net Core 6.0 and we are getting the error below.
We were using "Quartz" Version="3.0.7". We have tried also updating to "Quartz" Version="3.5.0" but that did not fix the issue.
Does anyone know if there is a fix for this?
Thank you!

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

Stack Trace:
at Quartzmin.ApplicationBuilderExtensions.AddQuartzmin(IServiceCollection services)
at Microsoft.AspNetCore.Hosting.WebHostBuilder.<>c__DisplayClass10_0.b__0(WebHostBuilderContext _, IServiceCollection services)
at Microsoft.AspNetCore.Hosting.WebHostBuilder.BuildCommonServices(AggregateException& hostingStartupErrors)
at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
at Quartzmin.SelfHost.QuartzminPlugin.d__23.MoveNext()
at Quartz.Core.QuartzScheduler.d__174.MoveNext()
at Quartz.Core.QuartzScheduler.d__68.MoveNext()

@Jetro223
Copy link

Jetro223 commented Feb 7, 2023

Hi @ValentinMil ,

I have the same problem - did you find a solution?

@dtila
Copy link

dtila commented Aug 2, 2023

Same for .NET 7. From what I see the problem resides the fact this package is referenced but no longer supported

https://www.nuget.org/packages/Microsoft.AspNetCore.Mvc.Formatters.Json/2.2.0?_src=template

@dtila
Copy link

dtila commented Aug 2, 2023

The project looks dead. Many PR ready and no code changed since years.

This project should be downgraded #46

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

3 participants