Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

C# Dynamics CRM Online “The request was aborted: Could not create SSL/TLS secure channel.”

Posted on by Microsoft Employee


This is an example of web request from CodeActivity on Dynamics CRM Online .

public class CodeActivity1 : CodeActivity
{
protected override void Execute(CodeActivityContext context)
{

var postUrl = "https://httpbin.org/get";
var request = (HttpWebRequest)WebRequest.Create(postUrl);
request.Method = "GET";
request.ContentType = "application/xml";
request.ContentLength = 0;

HttpWebResponse webresponse = (HttpWebResponse)request.GetResponse();
Encoding enc = System.Text.Encoding.GetEncoding("utf-8");
StreamReader responseStream = new StreamReader(webresponse.GetResponseStream(), enc);

var result = responseStream.ReadToEnd();
webresponse.Close();
.....

}
...
}



I receive "The request was aborted: Could not create SSL/TLS secure channel." error. From the Microsoft documentation (msdn.microsoft.com/.../gg334752.aspx) are the following limitations:
           *Only the HTTP and HTTPS protocols are allowed.
           *Access to localhost (loopback) is not permitted.
          *IP addresses cannot be used. You must use a named web address that requires DNS name resolution.
          *Anonymous authentication is supported and recommended. There is no provision for prompting the logged on user for credentials or saving those credentials.

Do you have suggestions or ideas relating to the nature of the problem ??

*This post is locked for comments

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans