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

  • WillWU Profile Picture
    22,352 on at
    RE: The request was aborted. Could not create SSL/TLS secure channel to call External Web Service deom D365FO Update37

    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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,997 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,827 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans