0

There is a multithread in windows form client to call a webservice method.

I expect to call the web method concurrently in multithread but instead the function calls are in queue to execute at web service.

This is not a WCF, where should i add the Connection limit? or something like that?

user1553857
  • 187
  • 2
  • 2
  • 10
  • How are you determining that the web service is only processing one at a time? – NotMe Sep 18 '13 at 11:53
  • @ChrisLively , i wrote a simulation program and confirm with that. same situation with this post (but he is using WCF) http://stackoverflow.com/questions/5990469/web-service-not-handling-multiple-simultaneous-request-from-same-application-wit – user1553857 Sep 18 '13 at 12:09
  • @Rafa, what pointers you are refering to? – user1553857 Sep 18 '13 at 12:10
  • Please give some information about your web service and your client, otherwise I cannot help you. – Rafa Sep 18 '13 at 12:19
  • I was probably not clear in my question. Where is the Web Service running? Is it in a visual studio instance in debug mode on your local computer or is it actually installed under IIS on a server? – NotMe Sep 18 '13 at 16:43

1 Answers1

0

Server Site: .net 2.0 Web Service asmx

Client Site: Windows Form Application

By adding the below setting to the app.config in client (windows form), you can define the connection limit to the web service.

The connection limit is not working in localhost, so put the web service in another host to test.

<system.net>
   <connectionManagement>
      <add address="*" maxconnection="24"/>       
   </connectionManagement>
  </system.net>
user1553857
  • 187
  • 2
  • 2
  • 10