# How to add an assembly resolve event delegate to overcome WorkflowGen.My dependency issue when deploying custom assembly SDK workflow application

**URL:** <https://discuss.workflowgen.com/t/how-to-add-an-assembly-resolve-event-delegate-to-overcome-workflowgen-my-dependency-issue-when-deploying-custom-assembly-sdk-workflow-application/330>\
**Category:** Web API\
**Created:** [April 19, 2016, 2:49am UTC](https://discuss.workflowgen.com/t/how-to-add-an-assembly-resolve-event-delegate-to-overcome-workflowgen-my-dependency-issue-when-deploying-custom-assembly-sdk-workflow-application/330 "2016-04-19T02:49:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wfg-admin](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/wfg-admin/32/714_2.png) [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Post date:** [April 19, 2016, 2:49am UTC](https://discuss.workflowgen.com/t/how-to-add-an-assembly-resolve-event-delegate-to-overcome-workflowgen-my-dependency-issue-when-deploying-custom-assembly-sdk-workflow-application/330/1 "2016-04-19T02:49:03Z")

</div>

**Note:** This article applies to WorkflowGen.My 3.1.0 and earlier.

When your custom assembly fails to load the required WorkflowGen.My version, you can catch this event and instruct your assembly to use the local WorkflowGen.My version found in the current WorkflowGen executable `\bin` folder.

#### C# example

1. Add a using directive to `System.Reflection` in your class file.

2. Add a delegate to the `AssemblyResolve` event in the constructor of your class.
