سؤال

I have created a client server application in android and asp.net. I have done the web service access using ksoap2. The application works fine. But sometimes when I try to connect the server using the Ksoap2, then an error arises out. The error log is shown below. This error happens only when the android client tries to communicate the server. Is there any way to eliminate this error? After this error occurs then when the app tries again immediately to communicate with the server, then the same error occurs. But after some time when the app tries to communicate, then there will be no problem of this. What is the error actually.? Can someone help me out. How to avoid this error??

This is the error log:

SoapFault - faultcode: 'soap:Server' faultstring: 'System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.InvalidOperationException: Timeout expired.  The timeout period elapsed prior to obtaining a connection from the pool.  This may have occurred because all pooled connections were in use and max pool size was reached.
هل كانت مفيدة؟

المحلول

I think this is time out exception u can check or increase time period like this

HttpTransportSE httpTransport = new HttpTransportSE("your SOAP_ADDRESS",60*10000);
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top