# 1.5.1. Breaks BackgroundJobClient Create for Interface method call?

**URL:** <https://discuss.hangfire.io/t/1-5-1-breaks-backgroundjobclient-create-for-interface-method-call/1428>\
**Category:** bug?\
**Created:** [October 15, 2015, 1:32pm UTC](https://discuss.hangfire.io/t/1-5-1-breaks-backgroundjobclient-create-for-interface-method-call/1428 "2015-10-15T13:32:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![apavlic](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@apavlic](https://discuss.hangfire.io/u/apavlic)\
**Post date:** [October 15, 2015, 1:32pm UTC](https://discuss.hangfire.io/t/1-5-1-breaks-backgroundjobclient-create-for-interface-method-call/1428/1 "2015-10-15T13:32:27Z")

</div>

We were upgrading our implementation to 1.5.0 version and all went well. Then noticed 1.5.1 version and decided to give it a try. However it started giving ‘Can not find the target method’ errors on Jobs that are being created for Interface methods. It was working when implementation methods were used. Switched back to 1.5.0.

```
> Error:
> _hangfireClient.Enqueue<IRemoteStorer>(x => x.StoreRemotely(document.DocumentId));
> OK:
> _hangfireClient.Enqueue<RemoteStorer>(x => x.StoreRemotely(document.DocumentId));

> Our enqueue is:
> public class HangfireClient
> ...
> IBackgroundJobClient _jobClient;
> ...
> public virtual string Enqueue<T>(Expression<Action<T>> methodCall)
> {...
> return _jobClient.Create(methodCall, new EnqueuedState
> {
> Queue = _queueName
> });

Actual log error from BackgroundJob:
2015-10-15 12:47:19,360 [DelayedJobScheduler] WARN Hangfire.AutomaticRetryAttribute - Failed to process the job '2': an exception occurred. Retry attempt 2 of 10 will be performed in 00:00:28.
System.InvalidOperationException: The type `...IRemoteStorer` does not contain a method with signature `StoreRemotely(Guid)`
   at Hangfire.Storage.InvocationData.Deserialize()

public interface IRemoteStorer
    {
        void StoreRemotely(Guid documentId);
    }
```

---

<div class="post-metadata">

**Author:** ![odinserj](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/odinserj/32/648_2.png) [@odinserj](https://discuss.hangfire.io/u/odinserj)\
**Post date:** [October 15, 2015, 2:49pm UTC](https://discuss.hangfire.io/t/1-5-1-breaks-backgroundjobclient-create-for-interface-method-call/1428/2 "2015-10-15T14:49:18Z")

</div>

@apavlic, thanks a lot for reporting this! I’ve just released [Hangfire 1.5.2](https://github.com/HangfireIO/Hangfire/releases/tag/v1.5.2) as a hotfix.

---

<div class="post-metadata">

**Author:** ![odinserj](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/odinserj/32/648_2.png) [@odinserj](https://discuss.hangfire.io/u/odinserj)\
**Post date:** [October 16, 2015, 10:34am UTC](https://discuss.hangfire.io/t/1-5-1-breaks-backgroundjobclient-create-for-interface-method-call/1428/3 "2015-10-16T10:34:32Z")

</div>

Closed on October 16, 2015, 10:34am UTC


