web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Connecting to onpremise crm 365

(1) ShareShare
ReportReport
Posted on by 2
Hi everyone! I have onpremise 365 crm dynamics 9.1.0032 version, working on http protocol. I change binding in IIS to https, change protocol in DeployManager to https, change SiteUrl key in RegEdit to https. UI works good, but i have some errors when i try to connect to crm from asp net application (not asp net core). Sometimes i have error: Metadata containes the reference that cannot be resolved! And url address to metadata is HTTP protocol. The error is floating and occurs only when I receive the IOrganizationService object using the POST method. When connecting, I specify useSSL = true. Tell me please what the problem might be?
I have the same question (0)
  • Suggested answer
    Vahid Ghafarpour Profile Picture
    12,230 Super User 2026 Season 1 on at
    Check if there are any references to HTTP URLs in the metadata. Sometimes, the metadata might contain hardcoded HTTP URLs that need to be updated to HTTPS.
     
  • NickGravaSP2 Profile Picture
    2 on at
    @VaHix
    Thnx for your answer. 
    But can you tell me where I can check URLs to metadata? 
    To connect to CRM I use this code:
    ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
    var crmServiceClient = new CrmServiceClient(credentials, hostname, "443", "nameOfMyOrg", false, true);
    if (crmServiceClient != null) && string.IsNullOrEmpty(crmServiceClient.LastCrmError))
      return crmServiceClient;
     
    So URL in code must be with HTTPS protocol, but it sometimes not...(

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
11manish Profile Picture

11manish 165

#2
ManoVerse Profile Picture

ManoVerse 161 Super User 2026 Season 1

#3
Zhilan Profile Picture

Zhilan 49

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans