简体   繁体   English

从Dynamics 365 CRM SDK创建代理类

[英]Create Proxy Class from Dynamics 365 CRM SDK

I have tried to create proxy class from Dynamics 365 CRM SDK using CrmSvcUtil. 我尝试使用CrmSvcUtil从Dynamics 365 CRM SDK创建代理类。 For that I have download the latest SDK and tried to generate proxy class but it causing error in console: "Unable to login CRM". 为此,我已经下载了最新的SDK,并尝试生成代理类,但它在控制台中导致错误:“无法登录CRM”。 Below is the syntax I am using: 以下是我使用的语法:

CrmSvcUtil.exe /url:https://<servername>/XRMServices/2011/Organization.svc 
/out:myorganizationcrmsdktypes.cs /username:"<domain\username>" /password:"<password>" 
/namespace:"proxy.crm" /serviceContextName:"CRMContext"

I have also tried with the XRMTool to generate the cs file but Same error occurred. 我也尝试使用XRMTool生成CS文件,但是发生了相同的错误。

尝试... /username:username /password:password /domain:domain

You may need to use /interactivelogin:true which will open a window & authenticate your org. 您可能需要使用/interactivelogin:true ,这将打开一个窗口并验证您的组织。

MS forum & MSDN MS论坛MSDN

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM