.NET Core CDS SDK Alpha Availability

Originally posted on Colin Vermander:
At long last a version of the CDS SDK is available with .NET Core 3.0 and 3.1 as target frameworks! This release marks a lot of significant change as well with the SDK to align with how CDS and Dynamics are marketed and sold. Gone are the days of XRM…

Continue Reading Nishant Rana’s Article on their blog

.NET Core CDS SDK Alpha Availability

Colin Vermander At long last a version of the CDS SDK is available with .NET Core 3.0 and 3.1 as target frameworks! This release marks a lot of significant change as well with the SDK to align with how CDS and Dynamics are marketed and sold.

Blog Syndicated with Nishant Rana’s Permission

Author: Nishant Rana

Share This Post On
468 ad

1 Comment

  1. Hello,

    I try to connect to Dynamics using client secret, i have created an application registartion, i have added secret client
    this is my code

    public static CdsServiceClient InitCRMConnection()
    {

    try
    {

    string connectionstring = ConfigurationManager.ConnectionStrings["connectionVSMP"].ConnectionString;

    sp = new CdsServiceClient(connectionstring);

    }

    catch (Exception ex)
    {
    LogHelper.Writer("Erreur lors de la connexion au crm, Message de l'erreur : " + Environment.NewLine + ex.ToString());
    }

    return sp;
    }

    I get error,
    Microsoft.Powerplatform.Cds.Client.Utils.CdsConnectionException: Failed to connect to Common Data Service
    —> System.ServiceModel.Security.MessageSecurityException: The HTTP request was forbidden with client authentication scheme ‘Anonymous’.
    at Microsoft.Powerplatform.Cds.Client.CdsConnectionService.InitCdsService()
    at Microsoft.Powerplatform.Cds.Client.CdsConnectionService.GetCachedCDSService(CdsConnectionService& ConnectionObject)
    at Microsoft.Powerplatform.Cds.Client.CdsConnectionService.IntilizeService(CdsConnectionService& ConnectionObject)
    at Microsoft.Powerplatform.Cds.Client.CdsConnectionService.DoLogin(CdsConnectionService& ConnectionObject)
    at Microsoft.Powerplatform.Cds.Client.CdsServiceClient.CreateCdsServiceConnection(Object externalOrgServiceProxy, AuthenticationType requestedAuthType, String hostName, String port, String orgName, NetworkCredential credential, String userId, SecureString password, String domain, String Geo, String claimsHomeRealm, Boolean useSsl, Boolean useUniqueInstance, OrganizationDetail orgDetail, UserIdentifier user, String clientId, Uri redirectUri, PromptBehavior promptBehavior, String tokenCachePath, OrganizationWebProxyClient externalOrgWebProxyClient, String certificateThumbPrint, StoreName certificateStoreName, X509Certificate2 certificate, Uri instanceUrl, Boolean isCloned, Boolean useDefaultCreds)
    — End of inner exception stack trace —
    at Microsoft.Powerplatform.Cds.Client.CdsServiceClient.CreateCdsServiceConnection(Object externalOrgServiceProxy, AuthenticationType requestedAuthType, String hostName, String port, String orgName, NetworkCredential credential, String userId, SecureString password, String domain, String Geo, String claimsHomeRealm, Boolean useSsl, Boolean useUniqueInstance, OrganizationDetail orgDetail, UserIdentifier user, String clientId, Uri redirectUri, PromptBehavior promptBehavior, String tokenCachePath, OrganizationWebProxyClient externalOrgWebProxyClient, String certificateThumbPrint, StoreName certificateStoreName, X509Certificate2 certificate, Uri instanceUrl, Boolean isCloned, Boolean useDefaultCreds)
    at Microsoft.Powerplatform.Cds.Client.CdsServiceClient.ConnectToCdsService(String cdsConnectionString)
    at Microsoft.Powerplatform.Cds.Client.CdsServiceClient..ctor(String cdsConnectionString)

    Post a Reply

Leave a Reply