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

Notifications

Announcements

No record found.

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,168 Super User 2025 Season 2 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 70 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 33 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans