• Register
0 votes
334 views

Problem :

I want to tell you that I have researched a lot for this issue but without a solution. I have created the loop that will go throw my listBox1 and that contains the links, each time creating the http GET request in order to access my full source code.

The error below is often triggered when my loop hits various of urls The weirdest thing is that if I try to remove my loop and make the http GET request to that site then everything works without any issue.

“A first chance exception of type 'System.Net.WebException' occurred in System.dll System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Authentication failed because the remote party has closed the transport stream.”

I don't consider that it's the problem with my certificate as otherwise I would still get the error when I removed my loop.

Any suggestions are highly appreciated.

7.5k points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

I had also faced the similar issue in the recent past. I did lot of research on it and found the solution on it. This is the very common problem with the people getting started.

This is happening due to the security protocol issue.

You need to just add the below line before your request context.

 ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;

This change will resolve your issue.

38.6k points

Related questions

0 votes
1 answer 22 views
22 views
Problem: Where should I seek assistance with this problem : Authentication failed because the remote party has closed the transport stream?
asked Jun 14 Mezbah 130k points
0 votes
1 answer 4 views
4 views
Problem: Stream music from phone to pc over wifi.
asked Jul 20 Rada Gracelynn 104k points
0 votes
1 answer 2 views
2 views
Problem: Stream music from pc to android over wifi?
asked Jul 15 Nahil 128k points
0 votes
1 answer 3 views
3 views
Problem: Stream music from pc to android Bluetooth?
asked Jul 15 Nahil 128k points
0 votes
1 answer 10 views
10 views
Problem: Can anyone simplify this : Stream music from android to pc via bluetooth windows 10?
asked Jun 24 Sawyer Parviz 168k points
1 vote
1 answer 30 views
30 views
Problem: I'm not able to complete my work because of this error > fatal: Authentication Failed
asked Apr 26 Abik Dey 4k points
0 votes
1 answer 31 views
31 views
Problem: I got an error while using the Facebook feed from slider revolution. It works perfectly when I use it in local but when I launch it in a normal URL, I got this error : Revolution Slider Error: Failed to load Stream.
asked Mar 27 ummesalma 29.1k points
0 votes
1 answer 4 views
4 views
Problem: Asp net web api token based authentication
asked Jul 15 Sawyer Parviz 168k points
0 votes
1 answer 8 views
8 views
Problem: Aws api gateway missing authentication token
asked Jul 12 Hridoy 19.2k points
0 votes
1 answer 3 views
3 views
Problem: Asp net core web api authentication token example
asked Jun 30 asha 121k points