gpt4 book ai didi

dynamics-crm-2011 - 无法加载文件或程序集“Microsoft.Xrm.Client”

转载 作者:行者123 更新时间:2023-12-04 18:43:56 24 4
gpt4 key购买 nike

我在CRM.中创建了一个插件它注册成功。在我的插件中,我创建了一个具有许多功能的 Web 服务。
成功调用插件步骤后,我收到错误-

System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Xrm.Client, Version=5.0.9689.2166, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies`. The system cannot find the file specified. To solve this issue I have created the New XRM.cs file from crmsvcutil.exe but got the same issue. Searched more about this but no solutions found yet.



注意 :我正在使用 Microsoft 托管的 CRM 版本

下面是我正在使用的引用文件。
  • microsoft.crm.sdk.proxy
  • Microsoft.CSharp
  • microsoft.xrm.client
  • microsoft.xrm.portal
  • microsoft.xrm.sdk
  • 系统
  • System System.Core
  • 系统数据
  • 系统.数据.服务
  • 系统.数据.服务.客户端
  • System.DirectoryServices.AccountManagement
  • System.Runtime.Serialization
  • System.ServiceModel
  • System.Xml
  • System.Xml.Linq

  • 有什么办法可以在托管版本的 CRM 上运行我的插件???

    如果有任何帮助,不胜感激:)

    最佳答案

    我已经使用这个命令解决了这个问题。

    CrmSvcUtil.exe /out:"Xrm.cs" 
    /url:http://crm/Contoso/XRMServices/2011/Organization.svc
    /namespace:Xrm
    /servicecontextname:XrmServiceContext
    /servicecontextprefix:Xrm

    删除代码自定义选项解决了我的问题。
    /codeCustomization:"Microsoft.Xrm.Client.CodeGeneration.CodeCustomization, Microsoft.Xrm.Client.CodeGeneration"

    关于dynamics-crm-2011 - 无法加载文件或程序集“Microsoft.Xrm.Client”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18223890/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com