1

到目前为止的步骤:

  • 从 MS 下载的注册工具
  • 建成
  • 部署到 CRM 应用服务器(Win2k8 机器)
  • 使用部署管理员帐户加载并登录
  • 添加新程序集
  • 浏览插件库
  • 按打开
  • 错误!

    未处理的异常:System.IO.FileLoadException:无法加载文件或程序集“file:///C:\crmtools\PluginRegTool\PluginRegTool_1708_New_From_SDK\PluginRegistration.exe”或其依赖项之一。不支持操作。(来自 HRESULT 的异常:0x80131515)

内部异常说:

System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. 
This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. 
If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.

我正在加载的插件库与 PluginRegTool(我之前所说的 CRM 应用服务器)位于同一个盒子上。regtool 位于 c:\ 驱动器上的文件夹下,插件库位于 \\server\bin\assembly 下

用这个把我的头发拉出来,以前一定做过100次!

非常感谢任何帮助。

4

1 回答 1

5

排序它

  • 右键插件注册工具exe文件
  • 点击属性
  • 文件已被“阻止”-右键单击并按“取消阻止”

瞧!

一位压力较小的 CRM 开发人员!

希望这对其他人有帮助。

编辑:值得一提的是,这又发生了,这次是实际的插件库。似乎是从其他机器传输文件导致了这个问题。如果有人对原因有更详细的解释,我很想获得有关此的更多信息。

于 2012-08-17T12:11:57.310 回答