Last post Aug 13, 2014 04:17 AM by Angie xu - MSFT
Aug 11, 2014 04:28 AM|shouvicic|LINK
I am hosting single website in 2 servers and the load balancer is managing the requests.
At this point do we need to make any changes in the code for it to work?
We are getting an error once in a while "Http Exception: The underlying connection was closed. An unexpected error occurred on a receive."
We rarely get this error, not sure what scenario forces the error to pop.
Aug 13, 2014 04:17 AM|Angie xu - MSFT|LINK
Http Exception: The underlying connection was closed. An unexpected error occurred on a receive."
According to the error message above, try the following solutions:
protected override WebRequest GetWebRequest(Uri uri)
HttpWebRequest webRequest = (HttpWebRequest) base.GetWebRequest(uri);
webRequest.KeepAlive = false;