none
Plugin Registration Tool Error While Connecting CRM 2011 Online

    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

All replies