简体   繁体   English

365更新后无法使用Xrm.Tooling.Connector连接到Dynamics 365

[英]Can't connect to Dynamics 365 with Xrm.Tooling.Connector after 365 update

Our organization uses Dynamics Online and this weekend received a major update from CRM 2016 (8.1) to 365 (8.2), and since then my apps can't connect using the Xrm.Tooling.Connector: 我们的组织使用Dynamics Online,本周末收到了从CRM 2016(8.1)到365(8.2)的重大更新,从那时起我的应用程序无法使用Xrm.Tooling.Connector进行连接:

CrmServiceClient client1 = new CrmServiceClient(ConfigurationManager.ConnectionStrings["XrmPowerString"].ConnectionString);

On app.config I have the connection string 在app.config上我有连接字符串

<add name="MyConnectionString" connectionString="Url=https://myorgname.crm.dynamics.com; Username=me@mydomain.com; Password=mypassword; AuthType=Office365" />

I get error: 我收到错误:

Microsoft.Xrm.Tooling.Connector.CrmServiceClient Error: 2 : Unable to Login to Dynamics CRM Microsoft.Xrm.Tooling.Connector.CrmServiceClient错误:2:无法登录到Dynamics CRM

And also 并且

Microsoft.Xrm.Tooling.Connector.CrmServiceClient Error: 2 : Source : mscorlib Method : HandleReturnMessage Date : 14/08/2017 Time : 01:46:02 Error : An unsecured or incorrectly secured fault was received from the other party. Microsoft.Xrm.Tooling.Connector.CrmServiceClient错误:2:源:mscorlib方法:HandleReturnMessage日期:14/08/2017时间:01:46:02错误:从另一方收到了不安全或不正确安全的故障。 See the inner FaultException for the fault code and detail. 请参阅内部FaultException以获取故障代码和详细信息。

After researhing for a similar problem in dynamics 365 crm 9.0, we found that was caused by Security Protocol Type version. 在针对动态365 crm 9.0中的类似问题进行研究后,我们发现这是由安全协议类型版本引起的。

Before instatiate your connection with CRM, ensure that your protocol version is TLS 1.2, adding the following code: ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; 在实施与CRM的连接之前,请确保您的协议版本是TLS 1.2,并添加以下代码: ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

https://community.dynamics.com/crm/f/117/t/235290 https://community.dynamics.com/crm/f/117/t/235290

Make sure you have the latest DLLs (8.2). 确保您拥有最新的DLL(8.2)。

If you are working with the sample projects within the SDK (my case), you MUST delete the content of the BIN folder and update all packages because even on the latest SDK, the samples are referring the old dll version 8.0. 如果你正在使用SDK中的示例项目(我的情况),你必须删除BIN文件夹的内容并更新所有包,因为即使在最新的SDK上,样本也引用旧的dll版本8.0。

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

相关问题 为什么在Dynamics 365 XRM工具SDK中使用IOrganizationService而不是CrmServiceClient? - Why use IOrganizationService instead of CrmServiceClient in Dynamics 365 XRM tooling SDK? 尝试将删除记录 function 添加到我的 web 应用程序,该应用程序使用 XRM 工具更新/编辑 Dynamics 365 中的记录并不断收到此错误? - Trying to add a delete record function to my web app that uses XRM tooling to update/edit records in Dynamics 365 and keep getting this error? 如何使用 Dynamics 365 XRM Tooling SDK 通过主 ID 一般获取实体记录的枚举集 - How to generically get enumerated set of entity records by primary id with Dynamics 365 XRM Tooling SDK 无法连接到 MS Dynamics CRM 365 - Not able to connect to MS Dynamics CRM 365 Dynamics 365-插件不会更新值 - Dynamics 365 - Plugin Does Not Update Values Dynamics 365:为什么 .net6 控制台客户端出现“Xrm.Sdk WSDL”错误? - Dynamics 365: why I get "Xrm.Sdk WSDL" error for .net6 console client? Dynamics 365 Online-更新v9之后从外部批处理更新错误 - Dynamics 365 Online - Error updating opportunity from external batch after v9 update Dynamics 365 CRM 集成 - Dynamics 365 CRM integration Dynamics 365中的关系元数据 - Relationship Metadata in Dynamics 365 Microsoft.Xrm.Tooling.Connector高内存分配 - Microsoft.Xrm.Tooling.Connector High Memory Allocation
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM