Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host in C#
问题 I have a code where I am sending the URL request and receiving the response and storing it as a String as public String GenerateXML(String q)// Here 'q' is the URL { // Generating the XML file for reference // Getting the response in XML format from the URL Debug.WriteLine("The Http URL after URL encoding :" + q); try { Uri signs1 = new Uri(q); //Debug.WriteLine("The Requested URL for getting the XML data :" + re); WebRequest request1 = WebRequest.Create(signs1); HttpWebResponse response1 =