Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Metadata contains a reference that cannot be resolved: 'https://crm.domain/XRMServices/2011/Organization.svc?wsdl&sdkversion=8.2'.

Posted on by Microsoft Employee

Hey Everyone,

Try to debug my ssis from yesterday but no success. My SSIS script component keep throwing Metadata contains a reference that cannot be resolved: 'crm.domain/.../Organization.svc;sdkversion=8.2'.

I m using Dynamics 365 on premise version 1612(8.2.0.749)(DB 8.2.0.749). The Dynamics 365 was IFD.

To create SSIS package,  I already,

1) Using latest dynamics  365 Sdk version 8.2.1.1
2) Yeah, also install this sdk into my GAC. Then reboot my server.

3) To check wether my organization url is correct, I also paste my OrganizationService url in browser and its return a service.

But still the same.

This is my sample code:

static void Main(string[] args)
        {

            IOrganizationService organizationservice;
            // Get the CRM connection string and connect to the CRM Organization

            ClientCredentials Credentials = new ClientCredentials();
            Credentials.UserName.UserName = "username";
            Credentials.UserName.Password = "password";

            Credentials.Windows.ClientCredential = System.Net.CredentialCache.DefaultNetworkCredentials;

            organizationservice = new OrganizationServiceProxy(
                new Uri("crm.domain/.../Organization.svc"), null, Credentials, null);
            
        }


I tried my ssis using trial version of  Dynamics 365 online and its working fine. I have no Idea and kinda lost. 

*This post is locked for comments

  • KrisMuthy Profile Picture
    KrisMuthy 100 on at
    RE: Metadata contains a reference that cannot be resolved: 'https://crm.domain/XRMServices/2011/Organization.svc?wsdl&sdkversion=8.2'.

    WHERE I CAN DO THIS IN WHICH FORM?

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Metadata contains a reference that cannot be resolved: 'https://crm.domain/XRMServices/2011/Organization.svc?wsdl&sdkversion=8.2'.

    Hi Mark ,

    I would suggest please post  your issue and details in a new thread  -

    community.dynamics.com/.../117

  • hoang.nguyen83 Profile Picture
    hoang.nguyen83 275 on at
    RE: Metadata contains a reference that cannot be resolved: 'https://crm.domain/XRMServices/2011/Organization.svc?wsdl&sdkversion=8.2'.

    Could you please tell me how to do that,

    Thanks very much

  • hoang.nguyen83 Profile Picture
    hoang.nguyen83 275 on at
    RE: Metadata contains a reference that cannot be resolved: 'https://crm.domain/XRMServices/2011/Organization.svc?wsdl&sdkversion=8.2'.

    Hello,

    Could you tell me how to do that?

    Thanks

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Metadata contains a reference that cannot be resolved: 'https://crm.domain/XRMServices/2011/Organization.svc?wsdl&sdkversion=8.2'.

    You just saved my life.

  • Saddamk206 Profile Picture
    Saddamk206 777 on at
    RE: Metadata contains a reference that cannot be resolved: 'https://crm.domain/XRMServices/2011/Organization.svc?wsdl&sdkversion=8.2'.

    Update Microsoft.Xrm.Sdk.dll

    OR

    Use this code above connection string

    ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Metadata contains a reference that cannot be resolved: 'https://crm.domain/XRMServices/2011/Organization.svc?wsdl&sdkversion=8.2'.

    It worked like a charm! Thank you!

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Metadata contains a reference that cannot be resolved: 'https://crm.domain/XRMServices/2011/Organization.svc?wsdl&sdkversion=8.2'.

    Changing the security setting worked. That was the only thing that worked for me.

    Thanks mr cha

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Metadata contains a reference that cannot be resolved: 'https://crm.domain/XRMServices/2011/Organization.svc?wsdl&sdkversion=8.2'.

    It did work!! Thanks..

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Metadata contains a reference that cannot be resolved: 'https://crm.domain/XRMServices/2011/Organization.svc?wsdl&sdkversion=8.2'.

    This problem occurs when the client computer cannot send an HTTP request. The client computer cannot send the HTTP request because the connection has been closed or is unavailable. And Today I realize that My DB server was using TLS1.2 not SSL as a protocol to connect to CRM App Server, so when making a connection from DB to CRM via console app, I must explicitly set the TLS version on the ServicePointManager. Just have this code run anytime before you make the call to CRM organization service.

    ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12

    Hope this will benefit someone in future.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans