If you are using code-behind to create a HttpWebRequest like var request = (HttpWebRequest)WebRequest.Create(Url); and then trying to use that request to get the WebResponse like var response = (HttpWebResponse)request.GetResponse(); This will error out as following “HttpWebRequest The underlying connection was closed: An unexpected error occurred on a send” To fix that you have to…