C# webservice consumer app hitting MaxConnect=2 limit



Hi, all

In debugging a C#-based .NET app that talks to a remote web service, I
was observing a particular behavior in which this app would generate
what I'd call a "burst" of calls to a web service. After these calls
fired, the application would block on any subsequent calls to the web
service.

After rummaging around, I finally came across the fact that the app was
hitting the wall imposed by the "maxConnects" parameter of
machine.config, and trying to open more than two simultaneous
connections to the same web endpoint. Changing this number for the sake
of test (in machine.config) (from 2 to 5) immediately resolved the
problem for the application, but I'm not sure I can make the assumption
I will be able to change that figure on machines using the app.

Are there programmatic workarounds to this, or settings in an
app-specific config file I can use that will overcome this limit? The
"burst" of calls is unusual, but correct within the context of the
application, so at the moment I'm awfully reluctant to try redesigning
that part of the program merely to overcome a single configuration
setting...

Any suggestions appreciated.

-intrepid

.



Relevant Pages

  • Re: C# webservice consumer app hitting MaxConnect=2 limit
    ... id> In debugging a C#-based .NET app that talks to a remote web service, ... id> what I'd call a "burst" of calls to a web service. ... id> app-specific config file I can use that will overcome this limit? ... id> that part of the program merely to overcome a single configuration ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Are ASP.NET user interfaces essentially dead now?
    ... it will be tight enough that you can't call SQL ... takes longer to develop ASP.NET interface than a windowsform app ... And communicating with a Web Service is not required the ... > I see Winforms doing the major amount of interface work and leaving the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: C# webservice consumer app hitting MaxConnect=2 limit
    ... id> In debugging a C#-based .NET app that talks to a remote web service, ... id> what I'd call a "burst" of calls to a web service. ... id> app-specific config file I can use that will overcome this limit? ... id> that part of the program merely to overcome a single configuration ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: SSL for very simple security need in web service app
    ... There is only a single end point here, a web service ... app that simply takes order info, validates it and applies it to a database. ... this is a common scenario. ... >>> userID ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Going crazy trying to understand Web Services behaviour with static member fields, static classe
    ... is loaded for the life of the app domain (ASP.NET can recycle the app domain ... if I launch the exe 2 or more times each exe sees different things ... I think a web service is like a web page, so it lives only for the ...
    (microsoft.public.dotnet.languages.csharp)