首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Dynamics xrm.cs编译错误

Dynamics xrm.cs编译错误
EN

Stack Overflow用户
提问于 2015-03-13 13:50:29
回答 2查看 289关注 0票数 0

我试图使用在这个链接中声明的步骤连接到CRM

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

误差

代码语言:javascript
复制
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 

命令行参数

/codeCustomization:"Microsoft.Xrm.Client.CodeGeneration.CodeCustomization,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 /serviceContextName:XrmServiceContextr Microsoft.Xrm.Client.CodeGeneration“

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2015-03-14 21:19:43

如果System.Data.Services不是GAC,它需要合并到您的程序集中,而不仅仅是引用。

票数 1
EN

Stack Overflow用户

发布于 2015-03-13 18:13:39

您需要向您的System.Data.Services应用程序添加一个TestCRM引用。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/29033988

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档