web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

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

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    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.

  • Community Member Profile Picture
    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..

  • Community Member Profile Picture
    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
    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!

  • Saddamk206 Profile Picture
    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
    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.

  • hoang.nguyen83 Profile Picture
    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

  • hoang.nguyen83 Profile Picture
    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

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator 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

  • KrisMuthy Profile Picture
    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?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#2
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans