I received this error message from PI WEB API call when I am trying to retrieve historical data with many tight calls in a loop.
System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: Only one usage of each socket address (protocol/network address/port) is normally permitted xxxxxxxxx 443
Did some googling.. it says that "exhausting the ~ x number of ports available limit". and there are options to fix this by monkey around with registry settings. (see below url)
We are not comfortable in changing the registry settings.. and tot to ask if anyone'd encountered this issue ? Any ideas on how to fix it? Any advice is much appreciated.