Job: Could not resolve assembly - Can not find the target method

recurring
Tags: #<Tag:0x00007f8b9a7def38>

#1

Hi,

I configured a windows service using .net core 3.1 to run hangfire. but when running the service the dashboards in the recurring jobs display “Could not resolve assembly ‘Name’” and in the succeeded Jobs once the job completes “Can not find the target method.”. While debugging the code I can see that my execution is being hit, but when I publish the project and run it the job does not process the data.


#2

It means that the Hangfire dashboard doesn’t have a reference to the code that the Hangfire server is executing. This is only a display issue in the dashboard, it doesn’t actually affect the jobs.

If you want to fix it, you will have to let the Hangfire dashboard have a reference to the same codebase that the Hangfire server is using.