views:

65

answers:

0

Hi,

I have a project that uses a WS proxy to make calls to it; both the application and the WebService are located on the same computer. The application uses multi-threading to make requests to WS; the ws proxy is instantiated only once (singleton class) and used throughout the application;

when i set 2 or threads in the application everything is ok; but when i increase the number of threads (thus the number of concurrent calls), at a certain point (after a variable period of time) i get this exception:

System.Net.WebException: The request was aborted: The operation has timed out. at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request) at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

I tried to see if the webservice is responsive during these errors, and it works perfect, but in my application all request fail with this Timeout exception...

do you have any idea of how i could solve this? Thanks in advance