Target method not found

queues
Tags: #<Tag:0x00007f64b97c2340>

#1

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!


#2

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.


#3

Are there multiple/multiple instance of the server?


#5

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.


#6

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