Hello All,
I am trying to connect MS Dyn CRM 2016 (On-Premises) with Dyn GP 2015 using Connector for Dynamics. And I am getting the below error
"
Metadata contains a reference that cannot be resolved: 'server/.../Discovery.svc;sdkversion=7.1'.
--- Exception Dump ---
Caught Exception: [System.InvalidOperationException] Metadata contains a reference that cannot be resolved: 'server/.../Discovery.svc;sdkversion=7.1'.
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.Dynamics.Integration.Adapters.Crm2011.CRM2011Adapter.GetCrmDiscoveryWebServiceClient()
at Microsoft.Dynamics.Integration.Adapters.Crm2011.CRM2011Adapter.GetOrgExtDetail()
at Microsoft.Dynamics.Integration.Adapters.Crm2011.CRM2011Adapter.GetOrgEndpoint()
at Microsoft.Dynamics.Integration.Adapters.Crm2011.CRM2011Adapter.GetCrmWebServiceClient()
at Microsoft.Dynamics.Integration.Adapters.Crm2011.CRM2011Adapter.GetSystemUserId(String userFullName, IOrganizationService serviceInstance)
at Microsoft.Dynamics.Integration.Adapters.Crm2011.CRM2011Adapter.get_IntegrationUserId()
at Microsoft.Dynamics.Integration.Adapters.Crm2011.CRM2011AdapterUtilities.GetReaderQueryExpression(String entityName, DateTime modifiedDate, CRM2011Adapter adapter, Boolean isDynamic, ColumnSet columnSet)
at Microsoft.Dynamics.Integration.Adapters.Crm2011.CrmObjectProvider.GetModifiedEntityKeys(DateTime modifiedDate, String keyPropertyName, String keyDisplayName)
at Microsoft.Dynamics.Integration.Adapters.Crm2011.CustomerObjectProvider.ReadObjectKeys(DateTime modifiedDate)
at Microsoft.Dynamics.Integration.AdapterAbstractionLayer.MixedObjectProviderProxy.ReadObjectKeys(DateTime modifiedDate)
at Microsoft.Dynamics.Integration.Service.Tasks.MapWork.ReadObjectKeyList(DbMap map, DateTime queryDate, Int32& count)
at Microsoft.Dynamics.Integration.Service.Tasks.MapWork.GetObjectKeys(DbMap map, OperationType operationType, DateTime queryDate, Int32& count)
at Microsoft.Dynamics.Integration.Service.Tasks.MapWork.ProcessRecordsImplementation(OperationType operationType)
Inner Exception: [System.Net.WebException] The remote server returned an error: (400) Bad Request.
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)
User: server\admini
Machine: xyz
"
I tried changing my dll version of Microsoft.Xrm.Sdk from old to latest but this is the error i always get.
Note : I have 3 organization in my deployment manager and all of the organization have same DISCOVERY SERVICE URL. I disabled the other two but still getting the same error.
Any Help Guys. . .