简体   繁体   English

CRM Dynamics 2011工作流程无法执行插件

[英]CRM Dynamics 2011 workflow failing on plugin execution

I have a CRM Dynamics 2011 server that has a custom plugin running that fires on the update of a custom entity. 我有一个CRM Dynamics 2011服务器,该服务器具有运行的自定义插件,该插件会在自定义实体的更新时触发。

If this entity is updated manually (ie through user interaction), the plugin fires correctly and behaves as expected. 如果此实体是手动更新的(即通过用户交互),则插件会正确触发并按预期运行。

If the entity is updated through a workflow, then the workflow fails with the error: 如果通过工作流更新实体,则工作流将失败并显示以下错误:

"Could not load file or assembly PW.CRM.Model, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cdbc0010db644fd3' or one of its dependencies. The system cannot find the file specified." “无法加载文件或程序集PW.CRM.Model,版本= 1.0.0.0,文化=中性,PublicKeyToken = cdbc0010db644fd3'或其依赖性之一。系统找不到指定的文件。”

The plugin dll is called PW.CRM.Plugins and it references the PW.CRM.Model dll. 插件dll称为PW.CRM.Plugins,它引用PW.CRM.Model dll。

We also have the following dlls referenced in the plugin: microsoft.crm.sdk.proxy microsoft.xrm.client microsoft.xrm.sdk microsoft.xrm.sdk.workflow 我们在插件中还引用了以下dll:microsoft.crm.sdk.proxy microsoft.xrm.client microsoft.xrm.sdk microsoft.xrm.sdk.workflow

All referenced dll's that are in the plugin have been registered in the GAC for that server. 插件中所有引用的dll已在该服务器的GAC中注册。 I have also at tried putting the dll's in the bin directory in CRMWeb on the server. 我也尝试将dll放在服务器上CRMWeb的bin目录中。

The plugin fires synchronously on pre-operation. 该插件在预操作时同步触发。 We have a dev server running that has the same plugin setup on it and we cannot reproduce the error on it. 我们运行的开发服务器上具有相同的插件设置,因此无法重现错误。

Have checked the event log for the server and cannot find any references to the issue either. 已检查服务器的事件日志,也找不到任何对该问题的引用。

Running Microsoft Dynamic CRM 2011 on Windows 2008 R2 using IIS 7.5. 使用IIS 7.5在Windows 2008 R2上运行Microsoft Dynamic CRM 2011。

Any help, guidance or ideas greatly appreciated. 任何帮助,指导或想法,我们将不胜感激。

Thanks to Ben Williams's question about where the async server role was located, made me realise that CRM was actually being split over two servers and therefore the dlls needed registering on both machines. 感谢本·威廉姆斯(Ben Williams)有关异步服务器角色位置的问题,使我意识到CRM实际上是在两台服务器上划分的,因此dll需要在两台计算机上注册。

Anyone else that has this issue, I would strongly advise you check and make sure that your CRM setup is not split over 2 servers. 任何其他遇到此问题的人,我强烈建议您检查并确保您的CRM设置未拆分到2台服务器上。

It was Ben's question that prompted me to go back to the CRM admin team and question the setup. 是Ben的问题促使我回到CRM管理员团队并质疑设置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM