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

Exception: Could not load file or assembly Hangfire.Tags

Open sboulema opened this issue 1 year ago • 3 comments

I am getting the following exception:

Could not load file or assembly 'Hangfire.Tags, Version=1.7.2.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

System.IO.FileNotFoundException: at Hangfire.HttpJob.Support.JobFilter.OnPerforming (Hangfire.HttpJob, Version=3.7.5.0, Culture=neutral, PublicKeyToken=null) at Hangfire.Profiling.ProfilerExtensions.InvokeAction (Hangfire.Core, Version=1.8.9.0, Culture=neutral, PublicKeyToken=null: C:\projects\hangfire-525\src\Hangfire.Core\Profiling\ProfilerExtensions.cs:37) at Hangfire.Profiling.SlowLogProfiler.InvokeMeasured (Hangfire.Core, Version=1.8.9.0, Culture=neutral, PublicKeyToken=null: C:\projects\hangfire-525\src\Hangfire.Core\Profiling\SlowLogProfiler.cs:51) at Hangfire.Profiling.ProfilerExtensions.InvokeMeasured (Hangfire.Core, Version=1.8.9.0, Culture=neutral, PublicKeyToken=null: C:\projects\hangfire-525\src\Hangfire.Core\Profiling\ProfilerExtensions.cs:29) at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter (Hangfire.Core, Version=1.8.9.0, Culture=neutral, PublicKeyToken=null: C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:140)

Using .net 8.0 with the following nuget packages:

  • Hangfire.AspNetCore 1.8.9
  • Hangfire.AzureCosmosDB 2.0.8
  • Hangfire.HttpJob 3.8.4

Transitive packages:

  • FaceIT.Hangfire.Tags 1.8.5
  • HangFire.Console 1.4.2
  • HangFire.Core 1.8.9
  • HangFire.NetCore 1.8.9

HangFire.HttpJob 3.8.1 had a dependency on Hangfire.Tags (>= 1.8.3). Starting from 3.8.2 the dependency changed to FaceIT.Hangfire.Tags (>= 1.8.5), maybe something went wrong there ?!

sboulema avatar Jan 31 '24 10:01 sboulema

Yes, when you upgrade to the latest hangfire version I have the same error.. Please upgrade to the latest version of hangfire.* and FaceIT.Hangfire.* packages ...

maxiar avatar Feb 01 '24 14:02 maxiar

yes

from 3.8.2 Hangfire.Tags - > FaceIT.Hangfire.Tags
because the Hangfire.Tags package has been deprecated.

yuzd avatar Feb 02 '24 01:02 yuzd

by the way Hangfire.AspNetCore 1.8.9 doesn't work very well, for details: https://github.com/HangfireIO/Hangfire/issues/2356

yuzd avatar Feb 02 '24 01:02 yuzd

已经更新到最新版本包 还是有同样的问题,升了个寂寞。

caixuxing avatar Apr 11 '24 08:04 caixuxing

已经更新到最新版本包 还是有同样的问题,升了个寂寞。

请升级到最新版本试试,目前redis的hangfire.tag组件我测试了没有问题 sqlserver的组件依然有问题,如果允许的话可以先暂时不用tag组件。 详见 https://github.com/HangfireIO/Hangfire/issues/2308

yuzd avatar Apr 18 '24 09:04 yuzd