Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Metadata contains a reference that cannot be resolved: 'https://crm.domain.com:444/OrganizationName/XRMServices/2011/Organization.svc?wsdl=wsdl0'

Posted on by 125

Server version 365 On-Premise (recently upgraded from 2016)

I tried connecting using the SDK sample code in foldere "SDK\SampleCode\CS\GeneralProgramming\Authentication"

the error i am experiencing is "Metadata contains a reference that cannot be resolved"

i confronted two WSDL versions(2016 and 365) and i saw different policy changes.

The one i immediatly noticed was the duplication below:
<wsp:Policy wsu:Id="CustomBinding_IOrganizationService_policy"> and
<wsp:Policy wsu:Id="CustomBinding_IOrganizationService1_policy"> 

Any suggestions?

*This post is locked for comments

  • Kjeld Poulsen Profile Picture
    Kjeld Poulsen 180 on at
    RE: Metadata contains a reference that cannot be resolved: 'https://crm.domain.com:444/OrganizationName/XRMServices/2011/Organization.svc?wsdl=wsdl0'

    I had the exact same problem, trying to create early bound entities using crmsvcutil.exe. The tool was unable to call a Dynamics 365 9.0 online installation.

    It turned out, that i could not use the 8.2 SDK at all against the 9.0, i had to install the 9.0 version from nuget and use the crmsvcutil.exe in that installation.

    You can find the 9.0 nuget packet for crmsvcutil here: https://www.nuget.org/packages/Microsoft.CrmSdk.CoreTools

    and install it in you visual studio project using 

    Install-Package Microsoft.CrmSdk.CoreTools -Version 9.0.0.7

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

    This solutions worked fine to me. 

    The default value for ServicePointManager.SecurityProtocol is System.Net.SecurityProtocolType.Ssl3 | System.Net.SecurityProtocolType.Tls

    Thanks in adv.

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

    Update Microsoft.Xrm.Sdk.dll

    OR

    Use this code above connection string

    ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

  • RE: Metadata contains a reference that cannot be resolved: 'https://crm.domain.com:444/OrganizationName/XRMServices/2011/Organization.svc?wsdl=wsdl0'

    This happens when your CRM is 2016+ but in code you are still using Microsoft.Xrm.SDK.dll that is from older SDK versions. Just download the latest CRM SDK and use the latest XRM.SDK.dll from it.

    Also note the XRM.dll from 2016+ needed atleast .Net 4.5.2

    ~ Please Like and Verify this answer if it helped. Always eager to help :-)

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

    Hello Mateo, I also have the same problem. Despite using latest sdk the problem still occurs. Anyway can I have your sample code for connection to crm. Thanks in advance.

  • gdas Profile Picture
    gdas 50,085 on at
    RE: Metadata contains a reference that cannot be resolved: 'https://crm.domain.com:444/OrganizationName/XRMServices/2011/Organization.svc?wsdl=wsdl0'

    Hi ,

    This error is coming due to network proxy. Sometimes you checked use a proxy server for your LAN in internet explorer browser settings . So you need check whether you are using proxy server by following way.

    1) Go to internet explorer settings

    2) Select Internet Options

    3)Go to connection Tab

    4)Click on LAN settings

    5) in LAN settings just unchecked the proxy server.

    Hope  this will help. Please mark as answer if your issue get resolve.

    Thanks

    Goutam

  • RE: Metadata contains a reference that cannot be resolved: 'https://crm.domain.com:444/OrganizationName/XRMServices/2011/Organization.svc?wsdl=wsdl0'

    We get the same error in our DEV instance - which is just updated to Dynamics365 - when trying to connect to Scribe Workbench. The instance is online.

    Are there any workouts on this?

  • Eccountable Profile Picture
    Eccountable 613 on at
    RE: Metadata contains a reference that cannot be resolved: 'https://crm.domain.com:444/OrganizationName/XRMServices/2011/Organization.svc?wsdl=wsdl0'

    Make sure you have the latest SDK. You can get them here:

    Download Microsoft Dynamics 365 Software Development Kit (SDK) from Official Microsoft Download Cent...

  • Matteo Veronesi Profile Picture
    Matteo Veronesi 125 on at
    RE: Metadata contains a reference that cannot be resolved: 'https://crm.domain.com:444/OrganizationName/XRMServices/2011/Organization.svc?wsdl=wsdl0'

    Replacing with new SDK 365 dll solved the example in "SDK\SampleCode\CS\GeneralProgramming\Authentication"

    The same problem is present during connection from Microsoft Dynamic Nav 2016 9.0.47838.0 (on-premise) using latest version DLL and Microsoft Dynamic CRM 365 8.2.0.749 (on-premise) through standard Nav connector.

  • Matteo Veronesi Profile Picture
    Matteo Veronesi 125 on at
    RE: Metadata contains a reference that cannot be resolved: 'https://crm.domain.com:444/OrganizationName/XRMServices/2011/Organization.svc?wsdl=wsdl0'

    read next post

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans