Skip to content

Error trying to connect to Server: Metadata contains a reference that cannot be resolved #1

Description

@ariskemper

I tried your module on Linux Ubuntu 14.04 with latest Mono 4.2 calling external on premise dynamics crm 2015. When checking, if XRMServices/2011/Organization.svc?wsdl&sdkversion=7.1 is available via url, it is accessible. I get following error, when trying to access it.

Error: Error trying to connect to Server: Metadata contains a reference that cannot be resolved : http://crmsrv.example.com:5555/XRMServices/2011/Organization.svc?wsdl&sdkversion=7.1
System.InvalidOperationException: Metadata contains a reference that cannot be resolved : http://crmsrv.example.com:5555/XRMServices/2011/Organization.svc?wsdl&sdkversion=7.1 ---> System.ServiceModel.EndpointNotFoundException: System error. ---> System.Net.WebException: Error: NameResolutionFailure
at System.Net.HttpWebRequest.EndGetRequestStream (IAsyncResult asyncResult) <0x4025ab40 + 0x00117> in :0
at System.ServiceModel.Channels.HttpRequestChannel+c__AnonStorey1.<>m__0 (IAsyncResult r) <0x4025a730 + 0x000ae> in :0
--- End of inner exception stack trace ---
at (wrapper managed-to-native) System.Object:__icall_wrapper_mono_remoting_wrapper (intptr,intptr)
at (wrapper remoting-invoke) System.ServiceModel.Description.IMetadataExchange:Get (System.ServiceModel.Channels.Message)
at System.ServiceModel.Description.MetadataExchangeClient.GetMetadataInternal (System.ServiceModel.EndpointAddress address, MetadataExchangeClientMode mode) <0x401d4290 + 0x0024e> in :0
--- End of inner exception stack trace ---
at System.ServiceModel.Description.MetadataExchangeClient.GetMetadataInternal (System.ServiceModel.EndpointAddress address, MetadataExchangeClientMode mode) <0x401d4290 + 0x002f7> in :0
at System.ServiceModel.Description.MetadataExchangeClient.GetMetadata (System.Uri address, MetadataExchangeClientMode mode) <0x401d3df0 + 0x0005b> in :0
at Microsoft.Xrm.Sdk.Client.ServiceMetadataUtility.RetrieveServiceEndpointMetadata (System.Type contractType, System.Uri serviceUri, Boolean checkForSecondary) <0x401cea20 + 0x00297> in :0
at Error (native)
at :1:55
at new CRMClient (/home/deploy/Projects/crm-rest/dynamicsintegration/node_modules/dynamicsintegration/CRM/CRMClient.js:34:26)
at Object. (/home/deploy/Projects/crm-rest/dynamicsintegration/test.js:3:11)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:475:10)
at startup (node.js:117:18)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions