Hangfire.RecurringJobAdmin icon indicating copy to clipboard operation
Hangfire.RecurringJobAdmin copied to clipboard

Issues with .NetCore 3.1

Open InvincibleDRT opened this issue 4 years ago • 4 comments
trafficstars

I am getting following errors when migrating to 3.1 from 2.2

`Unhandled exception. System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.

Could not load type 'Microsoft.AspNetCore.Http.Authentication.AuthenticationManager' from assembly 'Microsoft.AspNetCore.Http.Abstractions, Version=3.1.19.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.

Could not load type 'Microsoft.AspNetCore.Http.Authentication.AuthenticateInfo' from assembly 'Microsoft.AspNetCore.Http.Abstractions, Version=3.1.19.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.

Could not load type 'Microsoft.AspNetCore.Http.Features.Authentication.ChallengeBehavior' from assembly 'Microsoft.AspNetCore.Http.Features, Version=3.1.19.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.

at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)

at System.Reflection.RuntimeModule.GetTypes()

at System.Reflection.Assembly.GetTypes()

at Hangfire.RecurringJobAdmin.PeriodicJobBuilder.GetAllJobs()

at Hangfire.RecurringJobAdmin.ConfigurationExtensions.UseRecurringJobAdmin(IGlobalConfiguration config, Boolean includeReferences, Assembly[] assemblies) `

InvincibleDRT avatar Sep 28 '21 11:09 InvincibleDRT

Have you tried cleaning the solution before rebuilding? Also delete the bin/obj folders.

YanerTavuz avatar Sep 30 '21 06:09 YanerTavuz

Yeah i tried a fully clean and published version also. same result. Not sure if the support was added for 3.1

InvincibleDRT avatar Oct 06 '21 19:10 InvincibleDRT

Well, since the targeted frameworks are NET Standard 2.0 and NET Framework 4.6.2, it should be supported.

YanerTavuz avatar Oct 07 '21 09:10 YanerTavuz