Target method not found

Hello Team,

I’ve used IOC container (as described at other places) to invoke the target method (expression) in Enqueue / Schedule methods. But I still face the below problem.

Failed

Can not change the state to ‘Enqueued’: target method was not found.

System.InvalidOperationException

The type EmailServiceProvider does not contain a method with signature SendEmailAsync(EmailData, String, String, String)

System.InvalidOperationException: The type EmailServiceProvider does not contain a method with signature SendEmailAsync(EmailData, String, String, String) at Hangfire.Storage.InvocationData . DeserializeJob ()

Can anyone please help us here?

Thanks in advance!

FYI: The job keeps retrying and eventually the job succeeds. But I’m just concerned that why would it not work / find the target method the very first time.

Are there multiple/multiple instance of the server?

Yes there are multiple instances. and each server has the method implemented in it.
But it still ain’t able to get the target method.

Sounds like one of the server doesn’t have the updated binary/recent deployment.