Getting exception Could not load type 'Microsoft.Extensions.DependencyInjection.MvcJsonMvcCoreBuilderExtensions' from assembly 'Microsoft.AspNetCore.Mvc.Formatters.Json, Version=5.0.0.0 #139
Hi, I am trying to use SilkierQuartz v5.0.234 but I am getting a runtime exception
System.TypeLoadException: Could not load type 'Microsoft.Extensions.DependencyInjection.MvcJsonMvcCoreBuilderExtensions' from assembly 'Microsoft.AspNetCore.Mvc.Formatters.Json, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.
at Quartzmin.ApplicationBuilderExtensions.AddQuartzmin(IServiceCollection services)
at Quartzmin.SelfHost.QuartzminPlugin.<>c.b23_1(IServiceCollection services)
at Microsoft.AspNetCore.Hosting.WebHostBuilder.<>c__DisplayClass10_0.b0(WebHostBuilderContext _, IServiceCollection services)
at Microsoft.AspNetCore.Hosting.WebHostBuilder.BuildCommonServices(AggregateException& hostingStartupErrors)
at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
at Quartzmin.SelfHost.QuartzminPlugin.Start(CancellationToken cancellationToken)
at Quartz.Core.QuartzScheduler.StartPlugins(CancellationToken cancellationToken)
at Quartz.Core.QuartzScheduler.Start(CancellationToken cancellationToken)
at SilkierQuartz.HostedService.QuartzHostedService.StartAsync(CancellationToken cancellationToken)
at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host)
I am using dotnet core v5 in a hosted windows service with ConfigureWebHostDefaults
Would you have any suggestions?
Thank you
Hi, I am trying to use SilkierQuartz v5.0.234 but I am getting a runtime exception
System.TypeLoadException: Could not load type 'Microsoft.Extensions.DependencyInjection.MvcJsonMvcCoreBuilderExtensions' from assembly 'Microsoft.AspNetCore.Mvc.Formatters.Json, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. at Quartzmin.ApplicationBuilderExtensions.AddQuartzmin(IServiceCollection services) at Quartzmin.SelfHost.QuartzminPlugin.<>c.b23_1(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.Start(CancellationToken cancellationToken)
at Quartz.Core.QuartzScheduler.StartPlugins(CancellationToken cancellationToken)
at Quartz.Core.QuartzScheduler.Start(CancellationToken cancellationToken)
at SilkierQuartz.HostedService.QuartzHostedService.StartAsync(CancellationToken cancellationToken)
at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host)
I am using dotnet core v5 in a hosted windows service with ConfigureWebHostDefaults Would you have any suggestions? Thank you