F
fernando06
Guest
Hi,
We have a windows service running on C# .net 4.7.2 on a Windows server 2008R2. The app periodically downloads an xml page hosted on an https web site. We have the following 2 line at at the startup of the application:
ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12 | SecurityProtocolType.Ssl3;
Recently (this didn't use to happen) we have started to see errors that happen almost every 2 to 3 times the xml file is downloaded. The error is:
System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at IndjiWatch.Plugin.DataLoader.HttpDownloader2.HttpFileDownloader.ResponseCallback(IAsyncResult asyncResult) retrieving:
https://www.emergency.wa.gov.au/data/message_DFESCap.xml
As I mention the file is downloaded at least two times then it fails with the error, then it will download twice again, then it would fail again, and so for.
Running the same binaries on a Windows 10 machine does not exhibit the same issue (it will always download), so seems to be something to do with Windows Server 2008R2, but I can seem to find out what it is.
I have enabled the "Microsoft-Windows-CAPI2/Operational" log but there are no Error or Warning logs being registered there, that would explain any chain validation issues.
Any ideas or suggestions?
Thanks
Continue reading...
We have a windows service running on C# .net 4.7.2 on a Windows server 2008R2. The app periodically downloads an xml page hosted on an https web site. We have the following 2 line at at the startup of the application:
ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12 | SecurityProtocolType.Ssl3;
Recently (this didn't use to happen) we have started to see errors that happen almost every 2 to 3 times the xml file is downloaded. The error is:
System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at IndjiWatch.Plugin.DataLoader.HttpDownloader2.HttpFileDownloader.ResponseCallback(IAsyncResult asyncResult) retrieving:
https://www.emergency.wa.gov.au/data/message_DFESCap.xml
As I mention the file is downloaded at least two times then it fails with the error, then it will download twice again, then it would fail again, and so for.
Running the same binaries on a Windows 10 machine does not exhibit the same issue (it will always download), so seems to be something to do with Windows Server 2008R2, but I can seem to find out what it is.
I have enabled the "Microsoft-Windows-CAPI2/Operational" log but there are no Error or Warning logs being registered there, that would explain any chain validation issues.
Any ideas or suggestions?
Thanks
Continue reading...