Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Metadata contains a reference that cannot be resolved. (Inner Exception : The remote server returned an error: (400) Bad Request.)

Posted on by 80

Hello All,

i am trying to connect CRM 2016 with GP 2015. I am getting error while testing configuration setting for Microsoft Dynamics CRM 2011 in Connector for Microsoft Dynamics.  

"

Metadata contains a reference that cannot be resolved: 'test/.../Discovery.svc;sdkversion=7.1'.
--- Exception Dump ---
Caught Exception: [System.InvalidOperationException] Metadata contains a reference that cannot be resolved: 'test/.../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:  
Machine:  

"

I have used many versions (old to new) of "Microsoft.Xrm.Sdk.dll" in C:\Program Files (x86)\Microsoft Dynamics\Microsoft Dynamics Adapter\Adapters\Microsoft.Dynamics.Integration.Adapters.Crm2011 ..... but no Luck. 

If i change the "Microsoft.Xrm.Sdk.dll" the error description change with the sdk version in the end like "Metadata contains a reference that cannot be resolved: 'test/.../Discovery.svc;sdkversion=8.2'."

*This post is locked for comments

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!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans