Home
> CRM 2011 > ‘Metadata contains a reference that cannot be resolved’ issue with CRM 2011 with SSL binding
‘Metadata contains a reference that cannot be resolved’ issue with CRM 2011 with SSL binding
We get the below error, when you try to access SSL configured CRM organization service from external application (i.e., Console application etc…)
Metadata contains a reference that cannot be resolved issue with SSL binding: ‘https://hostname/org_name/XRMServices/2011/Organization.svc?wsdl’.
Fix :-
- We get this exception when you try to connect to CRM organization URL with “https”
- To fix this, include certification validation, before accesing CRM organization URL with “https”
- Add this line of code before instantiating OrganizationServiceProxy
ServicePointManager.ServerCertificateValidationCallback = delegate(object s, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) { return true; };
- You have to include below namespaces
- using System.Net.Security;
- using System.Security.Cryptography.X509Certificates;
- Get full code Here
🙂
Advertisement
Categories: CRM 2011
Tags: CRM 2011, https, Metadata contains a reference that cannot be resolved, OrganizationServiceProxy, SSL
Comments (0)
Trackbacks (0)
Leave a comment
Trackback
Stats
- 1,608,379 hits
Join 408 other subscribers
Top Posts
- Power Apps component framework (PCF) - Beginner guide
- [Step by Step] Power Apps | Show pop ups in Canvas App
- Power Automate Cloud Flow | 'Correct to include a valid reference' error
- [Step by Step] Canvas App | Dataverse | Filter, Patch, For All, Lookup
- [Step by Step] Embed "Azure Blob" connector Canvas App in Model Driven App
- [Step by Step] Power Apps Portal - Configure Global Search
- Power Platform CLI | Pack and Unpack solution using map xml
- Set “Created On”,” Created By”, “Modified On”, “Modified By” fields using SDK/Data Import/Plug-in – Dynamics 365
- Useful JScript syntax's – ADX/Dynamics 365 Portals
- Power Apps - Component library