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

Getting exception Could not load type 'Microsoft.Extensions.DependencyInjection.MvcJsonMvcCoreBuilderExtensions' from assembly 'Microsoft.AspNetCore.Mvc.Formatters.Json, Version=5.0.0.0 #139

Open
yitzchokneuhaus1 opened this issue Aug 26, 2022 · 0 comments

Comments

@yitzchokneuhaus1
Copy link

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.b__23_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

image

image

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

1 participant