Hello Guys, I am getting following exception while web service (ASMX) is returning the response. <!-- [if gte mso 10]> <mce:style>
System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. <!-- [if gte mso 10]> <mce:style>
InnterException (System.IO.Exception): "Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host."
I think either the Asp.net web server is closing the connection or the response is too long.
Following is my simple code.
public class VerTexProcessor
public DataSet ProcessVerTexForBatch(DataSet dsInputRequest)
DataSet dsResponse = new DataSet();
//Call vertex web service here.
VertexService.Service texCalculator = new VertexService.Service();
texCalculator.Timeout = 500000;
View Complete Post