The .NET ServicePoint class is used to implement web service end-points.
Questions tagged [servicepoint]
33 questions
2
votes
0 answers
webrequests with Binding different IPs using BindIPEndPointDelegate does not result in multiple ServicePoints for same host in multi-thread
Category:
Throughput Increment
Scenario:
Multiple HttpWebRequests need to be send through different ethernet adapters to the same host.
Keys to Remember:
Requests are going to same host.
There is a built in limit on per-host basis as…

devprashant
- 1,285
- 1
- 13
- 23
2
votes
1 answer
ASP.NET "The request was aborted: Could not create SSL/TLS secure channel" occurs also with configured servicepointmanager
I'm trying to request this image: https://www.kamerstunt.nl/file/img/web/woning/9577323WenumWieselZwolseweg-142d_6.jpg
If the image no longer exists when you read this, it might have been removed, but you'd still be able to view the SSL certificate…

Adam
- 6,041
- 36
- 120
- 208
2
votes
1 answer
PSH Runspaces + New-WebServiceProxy = 2 connection limit?
I require a high performing script calling an in-house web service. So I wrote a powershell script to create runspace threads which each make a request to a common Web Service proxy object (New-WebServiceProxy).
I figured out that regardless of the…

David H
- 23
- 3
1
vote
1 answer
ServicePoint safety checks to prevent blocking on new HttpWebRequests
I'm using a 3rd party library that makes a number of http calls. By decompiling the code, I've determined that it is creating and using raw HttpWebRequest's, all going to a single URL. The issue is that some of the requests don't get closed…

dan
- 9,712
- 6
- 49
- 62
1
vote
0 answers
Xamarin Forms application - Force IPv4 to HttpClient
It appears that this can be achieved by setting up a callback function to the ServicePoint.
The solution (although the goal is different, the same technique can be used) is discussed in this question Specify the local endpoint for HTTP…

Kazutsugu Fukumuro
- 56
- 5
1
vote
1 answer
Cannot send email using SmtpClient in ASP.NET
I want to send email in ASP.NET MVC website but it doesn't work.
I think the problem is with this exception here
'client.ServicePoint.Address' threw an exception of type 'System.NotSupportedException' with type System.Uri…

tomography
- 143
- 5
1
vote
0 answers
HttpWebRequest.ServicePoint not the same as ServicePointManager.FindServicePoint
I have a computer with three different network interfaces. I try to send a JSON request via one of those devices. But for some reason, the ServicePoint of the WebRequest is always wrong.
PC IP1: 10.43.130.122
PC IP2: 192.168.2.3
PC IP3:…

Dave Scum
- 11
- 4
1
vote
2 answers
CurrentConnections exceeds ConnectionLimit in ServicePoint
I have a cluster/server with multiple nodes that handle requests from the application.
The application the user is running, opens 2 web clients with the following…

galbru
- 422
- 1
- 5
- 15
1
vote
0 answers
Detect real start of HttpWebRequest
I'm a web crawler written using the TAP pattern API of HttpWebRequest.
I want to download some stuff from http://somedomain.tld but I might end up sending quite a number of requests. I don't know if somedomain.tld will respond in a timely fashion…

spender
- 117,338
- 33
- 229
- 351
1
vote
0 answers
ServicePoint,HttpConnectionHttp 1.1,httppipelining, Responons,stream.close internals?
In .net framework 3.5 , http 1.1 i.e persistent connections is used and pipelining is enabled bydefault. Could you please let me know it is neccessary to close stream or connection by calling httpresponse.close or stream.close method to release a…
user1855287
0
votes
1 answer
Disable Reusing ServicePoint between HttpWebRequests
I have a machine with multiple public Ip Addresses.
I want to send HTTP Requests, and manually control the Source IP Address.
For this, i the HttpWebRequest Class and overwrite the…

leumasme
- 376
- 4
- 19
0
votes
0 answers
CurrentConnections in ServicePoint is returning Zero
I am trying to see CurrentConnections property in ServicePoint object, but it's returning zero for me always even if I use any public URI; I am using .NET Core. Could someone please tell me if I am missing something?
Here is snippet of my test…
0
votes
0 answers
ServicePoint Configuration - Application starving http connections?
I have two C# asp.net applications running on IIS:
The main application creates up to 80 threads where each of them will
establish an http connection to a certrain endpoint (all the same endpoint (LAN)) at a frequency of roughly 3 seconds.
That…

yBother
- 648
- 6
- 25
0
votes
1 answer
ServicePointManager.FindServicePoint blocks
I am calling this method:
ServicePoint sp = ServicePointManager.FindServicePoint(mRequest.RequestUri, this.MapDataWebProxy);
for getting a service point, but when there is no internet conection available, the method just doesnt return.
Any ideas on…

Jayanam
- 138
- 1
- 7
0
votes
2 answers
.NET ServicePoint object lifecycle
I have been setting the ServicePoint.ConnectionLeaseTimeout property when my web API starts up so that connections are refreshed regularly for load balancing scenarios by using ServicePointManager.FindServicePoint. But, I am finding that at some…

Glen Thomas
- 10,190
- 5
- 33
- 65