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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

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

(0) ShareShare
ReportReport
Posted on by

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
    Guido Preite Profile Picture
    54,086 Moderator on at

    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

  • Royal King Profile Picture
    27,686 on at

    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.

  • Community Member Profile Picture
    on at

    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.

  • Community Member Profile Picture
    on at

    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...

  • Suggested answer
    Arpita Saini Profile Picture
    Microsoft Employee on at

    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.

  • Arpita Saini Profile Picture
    Microsoft Employee on at

    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.

  • Community Member Profile Picture
    on at

    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

  • Verified answer
    Community Member Profile Picture
    on at

    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

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    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

  • Suggested answer
    Thangamani Profile Picture
    507 on at

    Hi Divyesh,

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

    Regards,

    Thangamani

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
TNJ_CRM_Team Profile Picture

TNJ_CRM_Team 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans