Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/258.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Dynamics CRM xrm.cs编译错误_C#_Crm_Microsoft Dynamics_Xrm - Fatal编程技术网

C# Dynamics CRM xrm.cs编译错误

C# Dynamics CRM xrm.cs编译错误,c#,crm,microsoft-dynamics,xrm,C#,Crm,Microsoft Dynamics,Xrm,我正在尝试使用此链接中声明的步骤连接到CRM 错误 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 s

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

错误

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 
“/”应用程序中出现服务器错误。 编译错误 描述:编译服务此请求所需的资源时出错。请查看以下特定错误详细信息,并适当修改源代码。 编译器错误消息:CS0012:在未引用的程序集中定义了类型“System.Data.Services.IUpdatable”。您必须添加对程序集“System.Data.Services,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089”的引用。 源错误: 第192816行:// 第192817行:[System.CodeDom.Compiler.GeneratedCodeAttribute(“CrmSvcUtil”,“7.0.0000.3543”)] 第192818行:公共部分类XrmServiceContextr:Microsoft.Xrm.Client.CrmOrganizationServiceContext 第192819行:{ 第192820行: 源文件:c:\Users\Gevor\Documents\Visual Studio 2013\Projects\TestCRM\TestCRM\App\u Code\Xrm.cs行:192818 命令行参数

c:\dynamicsrm\SDK\Bin>CrmSvcUtil.exe/out:Xrm.cs /网址: /域:域/用户名:用户名/密码:密码/命名空间:Xrm /serviceContextName:XrmServiceContextr /codeCustomization:“Microsoft.Xrm.Client.CodeGeneration.codeCustomization, Microsoft.Xrm.Client.CodeGeneration“


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

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

所有需要的引用都已附加(System.Data.Services也已附加)