Windows Forms App stalls after 20 minutes inactivity

S

Stone

I have a Windows Forms application that makes async calls to Web
Services... When I run the application, initially everything is fine.
If I leave the app running for about 20 minutes and then make a web
service call, I get no response.

I check the web server logs, but it appears the call never made it
there. If I close the app, reopen it, call the web service,
everything is fine again.

Anyone run into this type of situation?

Thanks!
 
A

AlexS

Hi, Stone

you might lose connection during such long delay. Did you check the
connection status before trying to contact web service once again?

HTH
Alex
 
S

Stone

Alex,

Thanks for the reply. Wasn't aware that was something I would need to
do... Was thinking in terms of a web browser and not needing to check
the connection... Could you point me in the right direction in the
framework to make that check, and is it possible to programmatically
re-establish the connection?

Thanks!
Stone
 
A

AlexS

Hi, Stone

basically when you try once again to get to your service and fail - this is
indication that connection is "bad". How exactly bad depends on what you
get - exception, error code etc. Which depends on what objects / components
you use to connect.Did you check HttpContent.AllErrors collection and
HttpRemotingHandler?

HTH
Alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top