Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Metadata contains a reference that cannot be resolved IN MS CRM on-line 2015 plugin registration tool

Posted on by Microsoft Employee

Hello,

I have a issue when I try to log in into the plugin registration tool.whenever i try it's gave an error.

I attach error log file here.

---------------------------------------------------Error Log File -------------------------------------------------------

Source : System.ServiceModel
Method : Retrieve
Date : 2/25/2015
Time : 5:51:00 PM
Error : Metadata contains a reference that cannot be resolved: 'https://disco.crm5.dynamics.com/XRMServices/2011/Discovery.svc?wsdl'.
Stack Trace : at System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper)
at System.ServiceModel.Description.MetadataExchangeClient.ResolveNext(ResolveCallState resolveCallState)
at System.ServiceModel.Description.MetadataExchangeClient.GetMetadata(MetadataRetriever retriever)
at Microsoft.Xrm.Sdk.Client.ServiceMetadataUtility.RetrieveServiceEndpointMetadata(Type contractType, Uri serviceUri, Boolean checkForSecondary)
at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1..ctor(Uri serviceUri, Boolean checkForSecondary)
at Microsoft.Xrm.Sdk.Client.ServiceConfigurationFactory.CreateManagement[TService](Uri serviceUri, Boolean enableProxyTypes, Assembly assembly)
at Microsoft.Xrm.Tooling.Connector.CrmWebSvc.CreateAndAuthenticateProxy[T](IServiceManagement`1 servicecfg, Uri ServiceUri, Uri homeRealm, ClientCredentials userCredentials, ClientCredentials deviceCredentials, String LogString)
at Microsoft.Xrm.Tooling.Connector.CrmWebSvc.DiscoverOrganizations(Uri discoveryServiceUri, Uri homeRealmUri, ClientCredentials clientCredentials, ClientCredentials deviceCredentials)
at Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.QueryLiveDiscoveryServer(ClientCredentials liveCreds, Uri discoServer)
at Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.FindCrmOnlineDiscoveryServer(ClientCredentials liveCreds)
at Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.ValidateServerConnection(CrmOrgByServer selectedOrg)
======================================================================================================================
Inner Exception Level 1 :
Source : System
Method : GetResponse
Date : 2/25/2015
Time : 5:51:00 PM
Error : The remote server returned an error: (407) Proxy Authentication Required.
Stack Trace : at System.Net.HttpWebRequest.GetResponse()
at System.ServiceModel.Description.MetadataExchangeClient.MetadataLocationRetriever.DownloadMetadata(TimeoutHelper timeoutHelper)
at System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper)
======================================================================================================================

Source : System.ServiceModel
Method : Retrieve
Date : 2/25/2015
Time : 5:51:29 PM
Error : Metadata contains a reference that cannot be resolved: 'https://disco.crm5.dynamics.com/XRMServices/2011/Discovery.svc?wsdl'.
Stack Trace : at System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper)
at System.ServiceModel.Description.MetadataExchangeClient.ResolveNext(ResolveCallState resolveCallState)
at System.ServiceModel.Description.MetadataExchangeClient.GetMetadata(MetadataRetriever retriever)
at Microsoft.Xrm.Sdk.Client.ServiceMetadataUtility.RetrieveServiceEndpointMetadata(Type contractType, Uri serviceUri, Boolean checkForSecondary)
at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1..ctor(Uri serviceUri, Boolean checkForSecondary)
at Microsoft.Xrm.Sdk.Client.ServiceConfigurationFactory.CreateManagement[TService](Uri serviceUri, Boolean enableProxyTypes, Assembly assembly)
at Microsoft.Xrm.Tooling.Connector.CrmWebSvc.CreateAndAuthenticateProxy[T](IServiceManagement`1 servicecfg, Uri ServiceUri, Uri homeRealm, ClientCredentials userCredentials, ClientCredentials deviceCredentials, String LogString)
at Microsoft.Xrm.Tooling.Connector.CrmWebSvc.DiscoverOrganizations(Uri discoveryServiceUri, Uri homeRealmUri, ClientCredentials clientCredentials, ClientCredentials deviceCredentials)
at Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.QueryLiveDiscoveryServer(ClientCredentials liveCreds, Uri discoServer)
at Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.FindCrmOnlineDiscoveryServer(ClientCredentials liveCreds)
at Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.ValidateServerConnection(CrmOrgByServer selectedOrg)
======================================================================================================================
Inner Exception Level 1 :
Source : System
Method : GetResponse
Date : 2/25/2015
Time : 5:51:29 PM
Error : The remote server returned an error: (407) Proxy Authentication Required.
Stack Trace : at System.Net.HttpWebRequest.GetResponse()
at System.ServiceModel.Description.MetadataExchangeClient.MetadataLocationRetriever.DownloadMetadata(TimeoutHelper timeoutHelper)
at System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper)

*This post is locked for comments

  • Suggested answer
    Thangamani Profile Picture
    Thangamani 507 on at
    RE: Metadata contains a reference that cannot be resolved IN MS CRM on-line 2015 plugin registration tool

    Hi Divyesh,

        Pls try to use CRM365 plugin registration tool from the SDK folder.It will connect.

    Regards,

    Thangamani

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Metadata contains a reference that cannot be resolved IN MS CRM on-line 2015 plugin registration tool

    Hi ,

    I got the error to execute the below line.

    IServiceConfiguration<IOrganizationService> config = ServiceConfigurationFactory.CreateConfiguration<IOrganizationService>(uri);

    Following are the details to resolved the issue.

    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

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Metadata contains a reference that cannot be resolved IN MS CRM on-line 2015 plugin registration tool

    Hello,

    Finally, I got the solution.

    Here I attach it to help some one else..

    Add below code in the "PluginRegistration.exe" CONFIG file.

    in the <Configuration> tab....

     <system.net>

       <defaultProxy useDefaultCredentials="true" />

     </system.net>

    Thanks & Regards,

    Divyesh Sapovadiya

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Metadata contains a reference that cannot be resolved IN MS CRM on-line 2015 plugin registration tool

    Hello Arpita,

    Thanks for your Quick response.

    a) In the Proxy, make sure we have the bypass proxies set.

    -->we have the bypass proxies set.

    b) In IE, ensure that the sites crm.dynamics.com and *.crm.dynamics.com are added to the trusted sites.

    -->Already added to trusted site.

    I also check fiddler trace, it's gave the same error as above "The remote server returned an error: (407) Proxy Authentication Required."

    C)Try and run the tool in different machine

    -->It's working fine in another machine.

    So, I think problem is in my machine,but I don't have an idea how to resolve it.

    Thanks & Regards,

    Divyesh Sapovadiya

  • Arpita Saini Profile Picture
    Arpita Saini on at
    RE: Metadata contains a reference that cannot be resolved IN MS CRM on-line 2015 plugin registration tool

    Also, try below:-

      a) In the Proxy, make sure we have the bypass proxies set.

      b) In IE, ensure that the sites crm.dynamics.com and *.crm.dynamics.com are added to the trusted sites.

      c) In IE, ensure that the Exceptions are set for the bypass proxy. Sites crm.dynamics.com and also the disco.crm.dynamics.com should be present here.

  • Suggested answer
    Arpita Saini Profile Picture
    Arpita Saini on at
    RE: Metadata contains a reference that cannot be resolved IN MS CRM on-line 2015 plugin registration tool

    1) I see below error in your stack. Can you please disable if proxy is enabled in your machine. You can do it from your browser.

    The remote server returned an error: (407) Proxy Authentication Required.

    2) Try and run the tool in different machine

    3) Browse this URL, and can you confirm if you are able to access. If no, what is the message you get 'https://disco.crm5.dynamics.com/XRMServices/2011/Discovery.svc?wsdl'

    4) Next, take fiddler traces and see what is the issue

      

    Fiddler trace:

    a. Go to the following URL: http://www.fiddlertool.com/Fiddler2/version.asp
    b. Click the Get Fiddler, and then install the fiddler tool.
    c. After the install completes go to Start > Programs > Fiddler2 to open the tool.
    d. Within the tool, go to Tools > Fiddler Options > HTTPS tab, check the Capture HTTPS Connects and Decrypt HTTPS traffic checkboxes, and click OK.
    e. Now that the tool is running go ahead and recreate the issue at hand.
    f. Go to File > Save > All Sessions, and save it in .saz format.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Metadata contains a reference that cannot be resolved IN MS CRM on-line 2015 plugin registration tool

    Hello Chitrarasan,

    In my machine .net framework 4.5.2 already installed and I also double check it in my machine.

    But, I don't have a idea about Microsoft On-line services sign-in Assistant.

    please elaborate it little bit more...

    and how to install it...

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Metadata contains a reference that cannot be resolved IN MS CRM on-line 2015 plugin registration tool

    Hello,

    I have already try all of the tool form sdk-2011, sdk-2013, sdk-2015 and also which one you suggested.

    And my region is asia pacific area.

    But the problem is still exists.....

    Thanks & regards,

    Divyesh Sapovadiya.

  • Royal King Profile Picture
    Royal King 27,686 on at
    RE: Metadata contains a reference that cannot be resolved IN MS CRM on-line 2015 plugin registration tool

    DO you have .net framework 4.5.2 installled on the machine where you are running plugin registration tool? if not install the .net framework 4.5.2 as well make sure you have Microsoft Online Services Sign-In Assistant installed on the machine.

  • Suggested answer
    Guido Preite Profile Picture
    Guido Preite 54,081 Super User 2024 Season 1 on at
    RE: Metadata contains a reference that cannot be resolved IN MS CRM on-line 2015 plugin registration tool

    Hi,

    first try to use a different version of the plugin registration tool, you can find the 6.1.0 V2 here:

    https://onedrive.live.com/redir?resid=E4B83260B94D4158!1387&authkey=!ALuzupR9uXK3iII&ithint=folder%2c.exe

    second, pay attention to choose the right region from the office365 region dropdown

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!

Community AMA December 12th

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

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,993 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans