locked
plugin dependency question? RRS feed

  • Question


  • Hello - I've registered a plugin assembly through the Plugin Registration tool.  My plugin project has a reference to an entities project I created in the same solution with CrmSvcUtil.exe.

    The solution builds as expected. However, during runtime I'm getting a Business Process Error that says the entities project could not be loaded or found.  Any idea what might be causing this error or how to fix it?
    Friday, July 12, 2013 5:26 PM

Answers

  • If you are running plugins in the Sandbox, you will need to merge the two project assemblies using ILMerge.exe.  If your plugins are not sandboxed, you can add the entity assembly to the Program Files\Microsoft Dynamics CRM\Server\bin folder, where the service will probe for it.

    It used to be that having the entities definitions in a separate assembly would mess up some Linq queries.  Therefore, we always just integrated the CrmSvcUtil.exe output in with the plugin assembly.  That works too :)

    Friday, July 12, 2013 9:02 PM