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 :
Finance | Project Operations, Human Resources, ...
Unanswered

The request was aborted. Could not create SSL/TLS secure channel to call External Web Service deom D365FO Update37

(0) ShareShare
ReportReport
Posted on by 10

Hi everybody, for this error I read several posts and applied the solution to indicate the TLS12 protocol, but the error still happens to me in BUILD and TEST, but it was fixed on the development machine.

pastedimage1606325897050v1.png

the code is as follows:

str url;
str postData;
str returnValue;
System.Net.HttpWebRequest request;
System.Net.HttpWebResponse response;

System.IO.StreamReader streamReader;
System.Net.ServicePoint servicePoint;
System.Net.ServicePointManager servicePointManager;
CLRObject clrObj;
Counter countCounter;



System.Net.ServicePointManager::set_SecurityProtocol(System.Net.SecurityProtocolType::Tls12 );


System.Text.UTF8Encoding encoding = new System.Text.UTF8Encoding(false, true);
System.Byte[] byteArray = encoding.GetBytes(_EQMRequestCSSCollaborate.XMLRequest);
new InteropPermission(InteropKind::ClrInterop).assert();

url = _EQMInterfaceParameters.EQMCSSSupplierURL;
clrObj = System.Net.WebRequest::CreateHttp(url);


request = clrObj;

request.Method = 'POST';
request.ContentType = 'text/xml; charset=utf-8';
request.ContentLength = byteArray.Length;

using(var dataStream = request.GetRequestStream())
{
dataStream.Write(byteArray, 0, byteArray.Length);
}

Do you know how to fix it?

Regards,

Adolfo

I have the same question (0)
  • WillWU Profile Picture
    22,361 on at

    Hi Adolfo

    It is likely that some certificates on your test system are expired.

    If it's a cloud hosted system, in LCS on the environment details go to Maintain - Rotate secrets - Rotate SSL certificates.

    Hope this helps.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 592 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 478 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 305 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans