0

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

このエラーを取り除くには、アセンブリをどこにコピーする必要がありますか?

ありがとう!

4

1 に答える 1

0

以下を確認できます。 1. CRM は 4.0 フレームワークをサポートする必要があります。2. CRM でワークフロー DLL (System.Activity など) を参照するか、これらすべてをディレクトリにコピーします。

于 2012-06-21T11:44:16.953 に答える