web service timeout in C# Forms application (always)

Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default web service timeout in C# Forms application (always)

    The problem here is easy to describe, but I'm afraid it will be complex to
    resolve, if possible at all; here it goes...

    I've got a C# Forms application that needs to call web services; depending
    on the environment (described below) this is either *always* working
    perfectly in milliseconds, or *always* timing out, whatever the timeout limit
    is (even 300 seconds, which is ridiculous).
    The 3 environment tested are:
    - on workstations: always working
    - on some laptops: always working
    - on some other laptops: never working

    All machines are running Windows 2000 with the same version 1.1 of the .Net
    Framework.
    I've trimmed down my web service to just returning "hello", and trimmed down
    my application to just doing that web service call.... to the same effect, it
    will either always succeed or fail, using synchronous or asynchronous calls.
    Following the web service invocation, the next thing that happens is the
    exception telling that the request has timed out, no other explanation.
    Looking at the logs on the server, the request has not even reached it.

    This application is designed for a large corporation, which has a really
    strict (and good!) approach to configuration management: all machines in the
    company are built from only a few disk images. The difference between the
    laptops is that one batch is built from one disk image (for UK, France,
    US..), the other batch is built from another disk image required to include
    some specific drivers due to the available hardware in the area (Belgium,
    Netherlands).

    I'm having difficulties admitting that it all boils down to drivers.... but
    the way the application has been trimmed down it simply can't be the
    application - and it's not the web service availability as tests were ran
    concurrently in time & space (ie, network segment) on the different
    environments, for the results explained above.

    Has someone ever experienced this, or would be able to shed some light on
    this behavior which doesn't make any sense to me??? thanks!

    Arno Richard Guest

  2. Similar Questions and Discussions

    1. Controlling Web Service Timeout from inside web service
      I am implementing some web services to support a new standard for my industry. Because of the way these web services are defined, there is the...
    2. forms authentication cookie not timeout
      I customized the cookie generation in forms authentication so I can keep extra data in the cookie. but the problem now is that my forms...
    3. Meaning Of Timeout In FOrms Authentication..????
      does Timeout deletes automatically the cookie in the clients browser i relied on forms cookie to authenticate the user and had set timeout to i...
    4. Forms Authentication timeout doesn't work
      I am trying to do some testing of my application with respect to timeouts (i.e. Session timeouts). I took the advice of somebody else in this...
    5. How to inherit a base form in all application forms of an asp.net application
      hello friend, while developing an asp.net application, i created a base form(say mybaseform1) with certain links on it. then i tried to...
  3. #2

    Default Re: web service timeout in C# Forms application (always)

    Richard,

    When you experience a non responsive webservice, go to the client and the
    server, and in their command prompts type "netstat -n". Do you see a lot of
    connections left in TIME_WAIT state? More info on that in
    [url]http://dotnetjunkies.com/WebLog/sahilmalik/archive/2004/06/09/15893.aspx[/url]

    Is your webservice hosted in IIS? Try hosting it in IIS, and disable the
    HTTP KeepAlive on it.

    - Sahil Malik
    You can reach me thru my blog -
    [url]http://www.dotnetjunkies.com/weblog/sahilmalik[/url]



    "Arno Richard" <ArnoRichard@discussions.microsoft.com> wrote in message
    news:3809D0C0-989B-4844-9C72-04DB69214AC4@microsoft.com...
    > The problem here is easy to describe, but I'm afraid it will be complex to
    > resolve, if possible at all; here it goes...
    >
    > I've got a C# Forms application that needs to call web services; depending
    > on the environment (described below) this is either *always* working
    > perfectly in milliseconds, or *always* timing out, whatever the timeout
    > limit
    > is (even 300 seconds, which is ridiculous).
    > The 3 environment tested are:
    > - on workstations: always working
    > - on some laptops: always working
    > - on some other laptops: never working
    >
    > All machines are running Windows 2000 with the same version 1.1 of the
    > .Net
    > Framework.
    > I've trimmed down my web service to just returning "hello", and trimmed
    > down
    > my application to just doing that web service call.... to the same effect,
    > it
    > will either always succeed or fail, using synchronous or asynchronous
    > calls.
    > Following the web service invocation, the next thing that happens is the
    > exception telling that the request has timed out, no other explanation.
    > Looking at the logs on the server, the request has not even reached it.
    >
    > This application is designed for a large corporation, which has a really
    > strict (and good!) approach to configuration management: all machines in
    > the
    > company are built from only a few disk images. The difference between the
    > laptops is that one batch is built from one disk image (for UK, France,
    > US..), the other batch is built from another disk image required to
    > include
    > some specific drivers due to the available hardware in the area (Belgium,
    > Netherlands).
    >
    > I'm having difficulties admitting that it all boils down to drivers....
    > but
    > the way the application has been trimmed down it simply can't be the
    > application - and it's not the web service availability as tests were ran
    > concurrently in time & space (ie, network segment) on the different
    > environments, for the results explained above.
    >
    > Has someone ever experienced this, or would be able to shed some light on
    > this behavior which doesn't make any sense to me??? thanks!
    >

    Sahil Malik Guest

  4. #3

    Default Re: web service timeout in C# Forms application (always)

    hi Sahil,

    I can't test it myself as I've got to go to my IT dept for it, but I will
    surely have it tested and report back here. Thanks for the lead, I was really
    rnning out of ideas here.

    Arnaud

    "Sahil Malik" wrote:
    > Richard,
    >
    > When you experience a non responsive webservice, go to the client and the
    > server, and in their command prompts type "netstat -n". Do you see a lot of
    > connections left in TIME_WAIT state? More info on that in
    > [url]http://dotnetjunkies.com/WebLog/sahilmalik/archive/2004/06/09/15893.aspx[/url]
    >
    > Is your webservice hosted in IIS? Try hosting it in IIS, and disable the
    > HTTP KeepAlive on it.
    >
    > - Sahil Malik
    > You can reach me thru my blog -
    > [url]http://www.dotnetjunkies.com/weblog/sahilmalik[/url]
    >
    >
    >
    > "Arno Richard" <ArnoRichard@discussions.microsoft.com> wrote in message
    > news:3809D0C0-989B-4844-9C72-04DB69214AC4@microsoft.com...
    > > The problem here is easy to describe, but I'm afraid it will be complex to
    > > resolve, if possible at all; here it goes...
    > >
    > > I've got a C# Forms application that needs to call web services; depending
    > > on the environment (described below) this is either *always* working
    > > perfectly in milliseconds, or *always* timing out, whatever the timeout
    > > limit
    > > is (even 300 seconds, which is ridiculous).
    > > The 3 environment tested are:
    > > - on workstations: always working
    > > - on some laptops: always working
    > > - on some other laptops: never working
    > >
    > > All machines are running Windows 2000 with the same version 1.1 of the
    > > .Net
    > > Framework.
    > > I've trimmed down my web service to just returning "hello", and trimmed
    > > down
    > > my application to just doing that web service call.... to the same effect,
    > > it
    > > will either always succeed or fail, using synchronous or asynchronous
    > > calls.
    > > Following the web service invocation, the next thing that happens is the
    > > exception telling that the request has timed out, no other explanation.
    > > Looking at the logs on the server, the request has not even reached it.
    > >
    > > This application is designed for a large corporation, which has a really
    > > strict (and good!) approach to configuration management: all machines in
    > > the
    > > company are built from only a few disk images. The difference between the
    > > laptops is that one batch is built from one disk image (for UK, France,
    > > US..), the other batch is built from another disk image required to
    > > include
    > > some specific drivers due to the available hardware in the area (Belgium,
    > > Netherlands).
    > >
    > > I'm having difficulties admitting that it all boils down to drivers....
    > > but
    > > the way the application has been trimmed down it simply can't be the
    > > application - and it's not the web service availability as tests were ran
    > > concurrently in time & space (ie, network segment) on the different
    > > environments, for the results explained above.
    > >
    > > Has someone ever experienced this, or would be able to shed some light on
    > > this behavior which doesn't make any sense to me??? thanks!
    > >
    >
    >
    >
    Arno Richard Guest

  5. #4

    Default RE: web service timeout in C# Forms application (always)

    I had the same problem in Asp.net - VB.
    Turns out it was dsn verification issue.
    INstead of using a computer name, use an IP address.
    Mine was timing out because of the dsn resolution issues.
    With an IP address, it would find the computer with the web service and process the request in time

    From [url]http://www.developmentnow.com/g/16_2004_9_0_0_89978/web-service-timeout-in-C-Forms-application-always.ht[/url]

    Posted via DevelopmentNow.com Group
    [url]http://www.developmentnow.com[/url]
    MArk Rabus Guest

  6. #5

    Default RE: web service timeout in C# Forms application (always)

    MArk Rabus<mrabus@theawgroup.com> wrote in
    news:6e96b1de-6c25-4846-bf01-f20bb31c4f3b@msnews.microsoft.com:
    > I had the same problem in Asp.net - VB.
    > Turns out it was dsn verification issue.
    > INstead of using a computer name, use an IP address.
    > Mine was timing out because of the dsn resolution issues.
    For those curious what a dsn is, I think he means DNS.



    --
    Chad Z. Hower (a.k.a. Kudzu) - [url]http://www.hower.org/Kudzu/[/url]
    "Programming is an art form that fights back"

    Blog: [url]http://blogs.atozed.com/kudzu[/url]
    Chad Z. Hower aka Kudzu Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139