SaaS News Hubb
Advertisement
  • Home
  • News
  • Software Engineering
  • Software Development
  • SAAS Applications
  • Contact Us
No Result
View All Result
  • Home
  • News
  • Software Engineering
  • Software Development
  • SAAS Applications
  • Contact Us
No Result
View All Result
SaaS News Hubb
Home SAAS Applications

CRM Authentication/Conectivity Issue – Microsoft Dynamics CRM Forum Community Forum

by admin
July 22, 2022
in SAAS Applications


I have a class library project already developed that create Products from F&O to Field Service through Integeration.

Microsoft has deprciated  the WS-Turst (Office 365 Authentication) and Recommended to use OAuth.

Integration has been break after Code update

Connection is fine at console app or when i consume hosted integration project but when it run through the D365 Finance and Operation it give below error.

“”Unable to connect to CRM: Could not load type ‘Microsoft.IdentityModel.Clients.ActiveDirectory.LogCallback’ from assembly ‘Microsoft.IdentityModel.Clients.ActiveDirectory, Version=2.23.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’.rnCould not load type ‘Microsoft.IdentityModel.Clients.ActiveDirectory.LogCallback’ from assembly ‘Microsoft.IdentityModel.Clients.ActiveDirectory, Version=2.23.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’.Unable to Login to Dynamics CRMrnUnable to Login to Dynamics CRMOrganizationWebProxyClient is nullrnOrganizationWebProxyClient is nullOrganizationWebProxyClient is nullrnOrganizationWebProxyClient is null””

CRM Connection Code is here 

private static string ConnectToMSCRM()
{

string connectionStatus = "";
try
{
//New Authentication OAuth
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;

//New Authentication ClientSecret
var connectionString = "AuthType=ClientSecret;url=https://******.crm4.dynamics.com;ClientId=8b50f998-5a44-4307-8317-b6fb52bcf26c;ClientSecret=yty8Q~WdF3Xf8Nn0uTr4uCyJ0sUYD1K-KHd3Xapo";
CrmServiceClient crmConn = new CrmServiceClient(connectionString);
service = crmConn.OrganizationWebProxyClient ;

// Old obsolete code
//ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
//ClientCredentials credentials = new ClientCredentials();
//credentials.UserName.UserName = UserName;
//credentials.UserName.Password = Password;
//Uri serviceUri = new Uri(SoapOrgServiceUri);
//OrganizationServiceProxy proxy = new OrganizationServiceProxy(serviceUri, null, credentials, null);
//proxy.EnableProxyTypes();
//service = (IOrganizationService)proxy;
}

catch (Exception ex)
{
connectionStatus = "Error!" + "Error occurred while connecting to CRM " + ex.ToString();
}
return connectionStatus;

}



Source link

Previous Post

Nimble Digital Payment Models for 2022

Next Post

Shopify 2.0 Migration: A Complete Guide

Related Posts

SAAS Applications

Filter Price List Items for synchronization to Field Service Mobile app

August 17, 2022
SAAS Applications

Duplicate Account link in the navigation pane

August 16, 2022
SAAS Applications

Digital Transformation 101: What It Is and How to Get It Right

August 16, 2022
SAAS Applications

Database not found when importing organization

August 15, 2022
SAAS Applications

Problem with updating entity field: Sequence contains no matching element

August 14, 2022
SAAS Applications

Integration: MailChimp Dynamics 365

August 13, 2022

Most Popular

Software Engineering

.NET on Linux: Not Just a Marketing Ploy

August 17, 2022
Software Engineering

Kubernetes Troubleshooting with Itiel Shwartz and Lee Atchison

August 17, 2022
Software Development

Healthcare IT Certificate: CompTIA | Pluralsight

August 17, 2022
Software Development

Tips for Having Productive Remote Meetings

August 17, 2022
SAAS Applications

Filter Price List Items for synchronization to Field Service Mobile app

August 17, 2022
News

7 months after emerging from stealth, YC alum Arc secures $20M Series A – TechCrunch

August 17, 2022
News

A Big Step Forward in the Decade of Data by @ttunguz

August 17, 2022
Software Engineering

A history of open-source licensing from a lawyer who helped blaze the trail (Ep. 473)

August 16, 2022
Software Engineering

Permissions and Access-control with Or Weis

August 16, 2022

© 2022 Sass News Hubb All rights reserved.

Use of these names, logos, and brands does not imply endorsement unless specified. By using this site, you agree to the Privacy Policy

Navigate Site

  • Home
  • News
  • Software Engineering
  • Software Development
  • SAAS Applications
  • Contact Us

Newsletter Sign Up

No Result
View All Result
  • Home
  • News
  • Software Engineering
  • Software Development
  • SAAS Applications
  • Contact Us