Tuesday, May 3, 2011

Windows Mobile - auto connect to Internet (GPRS) when opening SqlConnection (.NET)

Hello!

I've set up a GPRS connection on a mobile device running Windows Mobile 5.0. It connects on demand (e.g. when entering an URL in Internet Explorer).

However, connecting to a remote database (via SqlConnection) fails if the device isn't already connected, ie. it doesn't connect automatically. Is there a way to configure the device to connect automatically when attempting any TCP connection, or should I do it programatically in some way (Connection Manager API)?

Thanks in advance!

From stackoverflow
  • Hi

    Did you manage to solve this issue? I need this, too.

    Thanks.

0 comments:

Post a Comment