• Register
0 votes
272 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.

6 5 3
7,540 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.

9 7 4
38,600 points

Related questions

0 votes
1 answer 4 views
4 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 24.5k points
1 vote
1 answer 3 views
3 views
Problem: Please help me to solve it out : password authentication failed for user "postgres"
asked Apr 4 MUHAMMAD MUNEEB 82.5k points
1 vote
1 answer 3 views
3 views
Problem: Why I got the error : password authentication failed for user postgres
asked Apr 4 MUHAMMAD MUNEEB 82.5k points
1 vote
1 answer 2 views
2 views
Problem: How can I deal with this problem : password authentication failed for user postgres windows
asked Apr 4 MUHAMMAD MUNEEB 82.5k points
1 vote
1 answer 3 views
3 views
Problem: Can someone please help fix this uncaught error : peer authentication failed for user postgres
asked Apr 4 MUHAMMAD MUNEEB 82.5k points
1 vote
1 answer 5 views
5 views
Problem: Please help me to solve it out : postgres password authentication failed for user
asked Apr 1 MUHAMMAD MUNEEB 82.5k points
1 vote
1 answer 6 views
6 views
Problem: I need a help , How I can fix this : postgresql password authentication failed for user
asked Apr 1 MUHAMMAD MUNEEB 82.5k points
1 vote
1 answer 3 views
3 views
Problem: How to fix this error : postgresql peer authentication failed for user
asked Apr 1 MUHAMMAD MUNEEB 82.5k points
1 vote
1 answer 1 view
1 view
Problem: When I attempt to connect from my JAVA application I get this» Org.postgresql.util.psqlexception: fatal: password authentication failed for user "postgres".
asked Mar 30 PkGuy 13.1k points
1 vote
1 answer 3 views
3 views
Problem: Any solution to this? Fatal: peer authentication failed for user.
asked Mar 25 PkGuy 13.1k points