locked
Plugin Registration Tool Error While Connecting CRM 2011 Online RRS feed

  • Question

  • Hi All, 

    I am getting an error while connecting the CRM 2011 online with Plug-in Registration Tool.

     

    Error:

    Unhandled Exception: System.InvalidOperationException: Metadata contains a reference that cannot be resolved: 'https://dev.crm.dynamics.com/XRMServices/2011/Discovery.svc?wsdl'.

       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 System.ServiceModel.Description.MetadataExchangeClient.GetMetadata(Uri address, MetadataExchangeClientMode mode)

       at Microsoft.Xrm.Sdk.Client.ServiceMetadataUtility.RetrieveServiceEndpoints(Type contractType, Uri serviceUri)

       at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1..ctor(Uri serviceUri)

       at Microsoft.Xrm.Sdk.Client.ServiceConfigurationFactory.CreateConfiguration[TService](Uri serviceUri)

       at Microsoft.Xrm.Sdk.Client.ServiceProxy`1..ctor(Uri uri, Uri homeRealmUri, ClientCredentials clientCredentials, ClientCredentials deviceCredentials)

       at Microsoft.Xrm.Sdk.Client.DiscoveryServiceProxy..ctor(Uri uri, Uri homeRealmUri, ClientCredentials clientCredentials, ClientCredentials deviceCredentials)

       at PluginRegistrationTool.ManagedTokenDiscoveryServiceProxy..ctor(Uri serviceUri, ClientCredentials userCredentials) in D:\Ms CRM\sdk\tools\pluginregistration\ToolServiceProxies.cs:line 33

       at PluginRegistrationTool.CrmConnection.get_DiscoveryService() in D:\Ms CRM\sdk\tools\pluginregistration\CrmConnection.cs:line 258

       at PluginRegistrationTool.CrmConnection.RetrieveOrganizations() in D:\Ms CRM\sdk\tools\pluginregistration\CrmConnection.cs:line 315

       at PluginRegistrationTool.ConnectionsForm.OpenConnection(CrmConnection con) in D:\Ms CRM\sdk\tools\pluginregistration\ConnectionsForm.cs:line 940

    Inner Exception: System.Net.WebException: The remote server returned an error: (504) Gateway Timeout.

       at System.Net.HttpWebRequest.GetResponse()

       at System.ServiceModel.Description.MetadataExchangeClient.MetadataLocationRetriever.DownloadMetadata(TimeoutHelper timeoutHelper)

       at System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper)


    Regards,
    Shivam  

    Wednesday, December 21, 2011 9:29 AM

Answers

  • The error '(504) Gateway Timeout' indicates a network problem (normally between a proxy server at your end, and the CRM web server). This problem is normally either due to a slow connection, or unavailability of the connection 

    Can you connect directly (e.g. via Internet Explorer) to https://dev.crm.dynamics.com


    Microsoft CRM MVP - http://mscrmuk.blogspot.com  http://www.excitation.co.uk
    Wednesday, December 21, 2011 10:14 PM
    Moderator
  • Yes you're right.

    It gives this error on due to network issue only.

    Finally it worked after some time :)

     

    Thanks ,

    Shivam 

    • Marked as answer by Shivam CRM Thursday, December 22, 2011 6:00 AM
    Thursday, December 22, 2011 6:00 AM

All replies

  • The error '(504) Gateway Timeout' indicates a network problem (normally between a proxy server at your end, and the CRM web server). This problem is normally either due to a slow connection, or unavailability of the connection 

    Can you connect directly (e.g. via Internet Explorer) to https://dev.crm.dynamics.com


    Microsoft CRM MVP - http://mscrmuk.blogspot.com  http://www.excitation.co.uk
    Wednesday, December 21, 2011 10:14 PM
    Moderator
  • Yes you're right.

    It gives this error on due to network issue only.

    Finally it worked after some time :)

     

    Thanks ,

    Shivam 

    • Marked as answer by Shivam CRM Thursday, December 22, 2011 6:00 AM
    Thursday, December 22, 2011 6:00 AM