'The underlying connection was closed: The connection was closed unexpectedly.' Error
-
Hi All, I am developing a WebApplication using ASP.NET and C#. there is a exception occurs when i call for a XmlWeb Service --Web Method. This is the code. try{ DataXML service=new DataXML(); service.Timeout = 10 * 60 * 1000; object[] results = service.GetProductionData(); }catch(Exception ex) { str=ex.Message; } Here we have to wait around 100 seconds to get the response. But before that there is exception occurs and the error message says 'The underlying connection was closed: The connection was closed unexpectedly So the client side returns a exception before results come. why is that?? can any one help on this? Thanks in advance..
-
Hi All, I am developing a WebApplication using ASP.NET and C#. there is a exception occurs when i call for a XmlWeb Service --Web Method. This is the code. try{ DataXML service=new DataXML(); service.Timeout = 10 * 60 * 1000; object[] results = service.GetProductionData(); }catch(Exception ex) { str=ex.Message; } Here we have to wait around 100 seconds to get the response. But before that there is exception occurs and the error message says 'The underlying connection was closed: The connection was closed unexpectedly So the client side returns a exception before results come. why is that?? can any one help on this? Thanks in advance..
-
It is impossible to answer the way you have posted your question. Why don't you place a debugger in the method GetProductionData and see if there is a problem in that method or not.
Ahsan Ullah Senior Software Engineer
Hi, I have debugged the code. but I can not find a error. while I am debugging the XML Webservice method,client side displaying the error message. why is that? Is it like timeout error?
-
Hi, I have debugged the code. but I can not find a error. while I am debugging the XML Webservice method,client side displaying the error message. why is that? Is it like timeout error?