ThreadAbortException on weak WiFi signal

T

Thore Berntsen

I have an .NET Compact Framework 2.0 application that calls an .asmx
webservice asynchronously over WiFi. It works fine most of the time,
but if the WiFi signal is very weak I sometimes get an
ThreadAbortException. I guess it is the thread waiting for the
callback that is aborted.

I catch this exception and log it. But the problem with
ThreadAbortException is that it is rethrown. In the full framework I
can stop that by calling Thread.ResetAbort(), but that method is
missing in the .NET CF 2.0. The result of this is that my application
crashes. Is there any way that I can stop the ThreadAbortException?

Thore
 
H

HakanAktan

I am using a periodic web service caller method , using GPRS. I had
similar problems then i set a TimeOut for Web Service (10 second).
Then i set the period of web service call to 1 minute. hope this
helps..
 
T

Thore Berntsen

I am using a periodic web service caller method , using GPRS. I had
similar problems then i set a TimeOut for Web Service (10 second).
Then i set the period of web service call to 1 minute. hope this
helps..

Thank You, I have actually set the timeout to 10 seconds, I will try
to set it to 60 seconds as You suggest.

Thore
 

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