Connection problem with Web Services

  • Thread starter Thread starter Byron Hopp
  • Start date Start date
B

Byron Hopp

My app utilizes Web Services to contact the server and get information on a
scan of a barcode. If for whatever reason the unit looses connection with
the network, and I attempt to access the web service, I get a message from
the OS stating that my app caused a problem and needed to terminate. I have
places a Try/Catch around my entire app and I cannot trap this error. How
can I check to make sure the connection is good before attempting to call
the web service so my app does not crash and force the user to restart?

Thanks,

Byron Hopp
 
You can use the ConnectionManager component. OpenNETCF has produced a
managed wrapped version which will allow you to call it easily.
http://www.opennetcf.org

This doesn't make any sense, try catch should catch any error. Can you post
the problematic code.
 
Simon,

I will have the code posted soon. But we kept thinking we were trapping the
wrong area so we trapped at a very high level. We caught other errors, but
this one does not seem to throw an error.

Thanks,

Byron...
 
Is the web service managed code?

Byron Hopp said:
Simon,

I will have the code posted soon. But we kept thinking we were trapping
the wrong area so we trapped at a very high level. We caught other
errors, but this one does not seem to throw an error.

Thanks,

Byron...
 
Yes, it is written in VB.Net as well. And I believe that it would be
considered managed. We did find out that we were utilizing the PocketPC
selection for our project, and our handheld is actually CE.Net, we are
correcting this to see if there is any difference.

Byron...
 
Back
Top