2015-03-13 3 views
0

Я пытаюсь подключиться к CRM, используя шаги, объявленные в этой ссылкеDynamics CRM xrm.cs компиляции ошибка

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: \ Dyna micsCRM \ SDK \ Bin> CrmSvcUtil.exe /out:Xrm.cs /URL: https://Organization/XRMServices/2011/Organization.svc /домен: DOMAIN/имя пользователя: USERNAME/пароль: ПАРОЛЬ/имен: XRM /serviceContextName: XrmServiceContextr /codeCustomization:"Microsoft.Xrm .Client.CodeGeneration.CodeCustomization, Microsoft.Xrm.Client.CodeGeneration»

ответ

0

Если System.Data.Services не является GAC, он будет объединен в вашу сборку, а не только ссылку.

0

Вы должны добавить ссылку System.Data.Services к приложению TestCRM.

+0

Все необходимые ссылки уже прилагаются (System.Data.Services также прилагается) – Gevorg

Смежные вопросы