注册工作流程程序集时出现FileNotFound错误

时间:2012-06-20 19:31:13

标签: workflow-foundation-4

我正在使用CRM插件注册工具将自定义活动加载到我们的CRM服务器上。我的自定义活动扩展为System.Activities.CodeActivity。但是,每当我尝试重新组装程序集时,都会出现以下错误:

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Activities, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. at System.Reflection.Assembly._GetExportedTypes() at System.Reflection.Assembly.GetExportedTypes() at PluginRegistrationTool.AssemblyReader.RetrievePluginsFromAssembly(String path) in C:\Users\sblessing\Desktop\sdk\tools\pluginregistration\AssemblyReader.cs:line 60 at PluginRegistrationTool.AssemblyReader.RetrievePluginsFromAssembly(String path) at PluginRegistrationTool.RegistrationHelper.RetrievePluginsFromAssembly(String pathToAssembly) in C:\Users\sblessing\Desktop\sdk\tools\pluginregistration\RegistrationHelper.cs:line 49 at PluginRegistrationTool.PluginRegistrationForm.btnLoadAssembly_Click(Object sender, EventArgs e) in C:\Users\sblessing\Desktop\sdk\tools\pluginregistration\PluginRegistrationForm.cs:line 127

我需要在哪里复制我的程序集才能摆脱这个错误?

谢谢!

1 个答案:

答案 0 :(得分:0)

您可以查看以下内容.. 1. CRM必须支持4.0框架。 2.在CRM上引用工作流DLL(System.Activity和其他)或将所有这些复制到目录中。