Dynamics CRM xrm.cs编译错误(Dynamics CRM xrm.cs compile error)

编程入门 行业动态 更新时间:2024-10-20 07:41:27
Dynamics CRM xrm.cs编译错误(Dynamics CRM xrm.cs compile error)

我正在尝试使用此链接中声明的步骤连接到CRM

https://msdn.microsoft.com/en-us/library/gg695790.aspx

错误

Server Error in '/' Application. Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0012: The type 'System.Data.Services.IUpdatable' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Source Error: Line 192816: /// </summary> Line 192817: [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "7.0.0000.3543")] Line 192818: public partial class XrmServiceContextr : Microsoft.Xrm.Client.CrmOrganizationServiceContext Line 192819: { Line 192820: Source File: c:\Users\Gevor\Documents\Visual Studio 2013\Projects\TestCRM\TestCRM\App_Code\Xrm.cs Line: 192818

命令行参数

c:\ DynamicsCRM \ SDK \ Bin> CrmSvcUtil.exe /out:Xrm.cs / url: https://Organization/XRMServices/2011/Organization.svc / domain:DOMAIN / username:USERNAME / password:PASSWORD / namespace:Xrm / serviceContextName:XrmServiceContextr /codeCustomization:"Microsoft.Xrm.Client.CodeGeneration.CodeCustomization,Microsoft.Xrm.Client.CodeGeneration“

I'm trying to connect to CRM using steps declared in this link

https://msdn.microsoft.com/en-us/library/gg695790.aspx

Error

Server Error in '/' Application. Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0012: The type 'System.Data.Services.IUpdatable' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Source Error: Line 192816: /// </summary> Line 192817: [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "7.0.0000.3543")] Line 192818: public partial class XrmServiceContextr : Microsoft.Xrm.Client.CrmOrganizationServiceContext Line 192819: { Line 192820: Source File: c:\Users\Gevor\Documents\Visual Studio 2013\Projects\TestCRM\TestCRM\App_Code\Xrm.cs Line: 192818

Command line parameters

c:\DynamicsCRM\SDK\Bin>CrmSvcUtil.exe /out:Xrm.cs /url:https://Organization/XRMServices/2011/Organization.svc /domain:DOMAIN /username:USERNAME /password:PASSWORD /namespace:Xrm /serviceContextName:XrmServiceContextr /codeCustomization:"Microsoft.Xrm.Client.CodeGeneration.CodeCustomization, Microsoft.Xrm.Client.CodeGeneration"

最满意答案

如果System.Data.Services不是GAC,则需要在程序集中合并,而不仅仅是引用。

If System.Data.Services is not the GAC, it neeeds to be merged in your assembly, not only referenced.

更多推荐

本文发布于:2023-07-26 15:40:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1277465.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   xrm   Dynamics   CRM   error

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!