Skip to content

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

@ValentinMil

Description

@ValentinMil

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions