Archive
Posts Tagged ‘Metadata contains a reference that cannot be resolved’
‘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
🙂
Categories: CRM 2011
Tags: CRM 2011, https, Metadata contains a reference that cannot be resolved, OrganizationServiceProxy, SSL
Stats
- 1,259,962 hits
Translate
Categories
Top Posts
- [Step by Step] Postman tool to test Dynamics 365 online Web API
- [Code Snippet] Custom Workflow Activity with Input and Output Params
- CRM Entity List Export to Excel – ADX Portals
- PowerApps - Step By Step - Build a simple Calculator App
- [Step by Step] Using TypeScript in Dynamics 365 9.x
- [Step by Step] Restore a Database from Azure Blob to Azure SQL Server
- Auto generate new GUID for ‘uniqueidentifier’ column in SQL Table
- Boot failure reboot and select proper boot device – Error connecting to VM - Hyper V
- SqlError: The backup set holds a backup of a database other than the existing database
- Dynamics Portals - Entity List Filters
Recent Posts
- Canvas App Import Failure | CanvasAppEnvironmentMismatch error
- ‘Callback Registration Expander’ System Jobs stuck at ‘Waiting For Resources’
- [Step by Step] Debug Model Driven and Canvas Apps using ‘Monitor’ tool
- Canvas App | Dataverse | Distribute columns to multiple forms and Patch
- [Step by Step] Canvas App | Dataverse | Filter, Patch, For All, Lookup
Calendar
M | T | W | T | F | S | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |