How to make an internet connection via GPRS programmatically?

R

Roberto Rocco

Hello,

I want to use GPRS to to SQL Server CE merge replication with my PDA (T-Mobile MDA 2) and have written a test application in C#.

Everything works fine as long as I have the PDA in the cradle and connect to the internet via ActiveSynch.
But as soon as I use the PDA outside the cradle without ActiveSynch I get Error 80072EE7.

GPRS itself is running fine, instead. I proove it by disconnecting the PDA from its cradle and entering the URL manually into Internet Explorer: A GPRS-connection is established and I get back "SQL Server CE Server Agent". Connections in IE via GPRS to any other internet site are also working.

This proves that GPRS is running well.

So it seems to me that from inside my program no internet connection is made if the PDA is not attached to the cradle and thus is not using Active Synch. The very same program works perfectly instead as soon as the PDA uses Active Synch.

Is there anything I have to do programmatically to establish an internet connection via GPRS ??

The exact error message is a s follows:

"Error Code: 80072EE7
Message : A request to send data to the computer running IIS has failed. For more information see HRESULT.[,,,,,]
Minor Error.: 28037
Source : Microsoft SQL Server 2000 CE Edition."


Many thanks in advance for every hint,

Roberto Rocco.
 
P

Paul G. Tobey [eMVP]

You need to create the RAS connection to your ISP or whomever is called by
the GPRS. IE, as a program, does this if it finds that it's not connected
and you now need to do the same. RAS has been covered here in the past...

Paul T.

Hello,

I want to use GPRS to to SQL Server CE merge replication with my PDA
(T-Mobile MDA 2) and have written a test application in C#.

Everything works fine as long as I have the PDA in the cradle and connect to
the internet via ActiveSynch.
But as soon as I use the PDA outside the cradle without ActiveSynch I get
Error 80072EE7.

GPRS itself is running fine, instead. I proove it by disconnecting the PDA
from its cradle and entering the URL manually into Internet Explorer: A
GPRS-connection is established and I get back "SQL Server CE Server Agent".
Connections in IE via GPRS to any other internet site are also working.

This proves that GPRS is running well.

So it seems to me that from inside my program no internet connection is made
if the PDA is not attached to the cradle and thus is not using Active Synch.
The very same program works perfectly instead as soon as the PDA uses Active
Synch.

Is there anything I have to do programmatically to establish an internet
connection via GPRS ??

The exact error message is a s follows:

"Error Code: 80072EE7
Message : A request to send data to the computer running IIS has failed. For
more information see HRESULT.[,,,,,]
Minor Error.: 28037
Source : Microsoft SQL Server 2000 CE Edition."


Many thanks in advance for every hint,

Roberto Rocco.
 
M

Marcus Perryman [MSFT]

Pocket PC 2002's Connection Manager technology is designed to help you out
here. There is a programmatic interface to Connection Manager, but currently
no managed wrapper class available in CF. Calling connection manager and
requesting a connection to the internet will cause the device to find and
activate the most appropriate route to satisfy your request, then inform you
when its connected. This is what all the built in applications (like PIE)
use to make a connection and, although its not perfect, its soooo much
easier that RAS!

I know there are several 3rd party wrapper classes out there (sorry dont
have a link to hand), or you can write your own C++ wrapper dll.

For more information on Connection Manager search in the Pocket PC SDK help
for "ConnMgrEstablishConnection"



Marcus
 

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