1

I have a problem with my .NET Windows Client Application. Occasionally, about 1 out of 100 web service calls, I get the error:

The request was aborted: Could not create SSL/TLS secure channel.

When does the error show?

  • In Windows 7, but not in Windows 10
  • When using Fiddler, the error does not occur.

I have tried the following

Now I'm running out of ideas and I can't find anyone else with a similar problem.

Please help me, I'm desperate. :)

Mike
  • 11
  • 2
  • Can you show us some code please? Do you use "ServicePointManager" for this? – Dimitri Nov 11 '19 at 13:01
  • If it never happens on Windows 10 but occasionally on Windows 7 then it might be a timing issue. Is the Windows 7 system slower than the Windows 10 system? Does it has less cores? Tried something silly like placing a Thread.Sleep(100); right before making the connection. It could also be a race condition between multiple threads. Without code, I just have to guess... :-) – Wim ten Brink Nov 11 '19 at 13:35
  • 1) The networking is unreliable, so you need to implement retry mechanism. 2) Fiddler is almost useless in this case, as it can hide SSL/TLS handshakes from you. Use a tool like Wireshark to capture/analyze the handshake packets when the issue recurs, and the culprit should reveal itself. – Lex Li Nov 11 '19 at 16:53

0 Answers0