yuzd / Hangfire.HttpJob

httpjob for Hangfire,restful api for Hangfire,job调度与业务分离
https://github.com/yuzd/Hangfire.HttpJob/wiki
MIT License
630 stars 186 forks source link

Exception: Could not load file or assembly Hangfire.Tags #207

Closed sboulema closed 5 months ago

sboulema commented 8 months ago

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:

Transitive packages:

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 ?!

maxiar commented 8 months ago

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

yuzd commented 8 months ago

yes

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

yuzd commented 8 months ago

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

caixuxing commented 5 months ago

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

yuzd commented 5 months ago

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

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