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
🙂
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,558,539 hits
Tweets
- RT @ManuelaPichler_: I suffered a concussion last week, and I'm so glad to see this video is actually REAL and not just something my brain… 4 days ago
- RT @TaikiYoshidaEN: Awesome to see we have a shiny new public facing website for Power CAT! 😻😻😻 microsoft.github.io/powercat/ #PowerApps #PowerA… 1 week ago
- RT @ravichada: 🎥 The demo video is ready now. Do check out the Dataverse Security Roles risk assessment tool in action. Leave a comment or… 1 week ago
- RT @ManuelaPichler_: CoE kit but make it more fluent-y #comingsoon https://t.co/kcSzPqwZhM 1 week ago
- New Blog Post: C# Basics | Why Interfaces rajeevpentyala.com/2023/01/07/c-b… 4 weeks ago
Join 400 other subscribers
Top Posts
- Auto generate new GUID for ‘uniqueidentifier’ column in SQL Table
- [Step by Step] Postman tool with Microsoft Dataverse Web API
- Power Apps component framework (PCF) - Beginner guide
- [Code Snippet] Custom Workflow Activity with Input and Output Params
- [Step by Step] Connecting to Azure SQL Server using OLEDB Connection from SSIS
- [Step by Step] Power Apps Portal - Configure Global Search
- [Step by Step] Model-driven apps | In-app notifications
- Power Platform - Pass json collection from Canvas App to Power Automate
- God Mode - Level Up - Dynamics 365 Chrome Extension
- [Step by Step] Model Driven App | Grids | Navigate to custom page on row click