Web Service : Unable to read data from the transport connection
-
I am using NDFD service for wether data : http://www.weather.gov/forecasts/xml/ First i got error : underlaying connection closed. its resolved after i puts protected override System.Net.WebRequest GetWebRequest(Uri uri) { System.Net.HttpWebRequest webRequest = (System.Net.HttpWebRequest)base.GetWebRequest(uri); webRequest.ProtocolVersion = HttpVersion.Version10; webRequest.KeepAlive = false; return webRequest; } But now in some cases its gives me error: Unable to read data from the transport connection. Connection closed. Plz.. can any one help me on this? I m using ASP.Net 2.0
With Regards, Mayank Prajapati MCP, MCTS Sr. Software Engineer JCTWeb India www.jctweb.com
-
I am using NDFD service for wether data : http://www.weather.gov/forecasts/xml/ First i got error : underlaying connection closed. its resolved after i puts protected override System.Net.WebRequest GetWebRequest(Uri uri) { System.Net.HttpWebRequest webRequest = (System.Net.HttpWebRequest)base.GetWebRequest(uri); webRequest.ProtocolVersion = HttpVersion.Version10; webRequest.KeepAlive = false; return webRequest; } But now in some cases its gives me error: Unable to read data from the transport connection. Connection closed. Plz.. can any one help me on this? I m using ASP.Net 2.0
With Regards, Mayank Prajapati MCP, MCTS Sr. Software Engineer JCTWeb India www.jctweb.com
Hi Are you using SMTP connection?? Then check this link http://forums.asp.net/thread/1198752.aspx[^]
Harini
-
Hi Are you using SMTP connection?? Then check this link http://forums.asp.net/thread/1198752.aspx[^]
Harini
No i am not using smtp. i am using HTTPRequest. using http 1.0 protocols
With Regards, Mayank Prajapati MCP, MCTS Sr. Software Engineer JCTWeb India www.jctweb.com