Groups | Blog | Home
all groups > dotnet compact framework > october 2005 >

dotnet compact framework : Open VPN connection from code



Davide
10/14/2005 8:35:09 AM
Hello.

I am developing an application for a Windows CE 4.2 device using .NET
CF and OpenNetCF v.1.1.
I need to start a VPN connection (which I have manually created using
"Network amd Dial-Up Copnnections" manager on the device) from my
application by clicking a button and then activating it. Can this be
achieved in .NET CF ? How can this be done ?

Thank you in advance for helping.

Best regards.


Davide Pozzi
Simon Hart
10/16/2005 9:06:03 AM
Hi

Take a look at the ConnectionManager class in OpenNETCF.

Cheers
Simon.

[quoted text, click to view]
Davide
10/17/2005 1:03:18 AM
Hello Simon and thank you for the answer.

I have anyway already taken a look at this class but cannot figure out
how to identify the connection I want to start with the Connection
manager class. Can you help on this class usage ?

Thank you in advance.

Cheers.


Davide
Davide
10/17/2005 2:20:01 AM
I have found out why I cannot successfully work with the
ConnectionManager class provided with OpenNETCF. This class needs the
"cellcore.dll" library which seems not to be included into Windows CE
devices, but only on Windows Mobile ones...This is really annoying:
which other approach can I follow to solve my problem ?


Davide
Simon Hart
10/17/2005 8:16:18 AM
Hi Davide,

Oh right I didn't know that. I never use Windows CE devices. I guess my
problems I have had are slightly easier than yours in that I don't need a VPN
and I just simply create a GUID of the Web Service IP address and
ConnectionManager works out for me whether it needs to use GPRS, Wi-fi etc..

You will probebly need a P/Invoke on the CE devices. I would certainly start
in that area.

Regards
Simon.

[quoted text, click to view]
Davide
10/18/2005 5:34:48 AM
Hi Simon.

I have found a .NET CF component from Intelliprog which enables (they
have used P/Invoke on the CE devices to develop it, I think) to start a
VPN from code exploiting a RAS connection (this is the way VPN
connections are managed). The problem is that RAS connection is a dial
up one and so it needs a phone number and I must verify if the RAS
connection works with XP Pro (which the client has)...I see no easy
solutions for this problem (if only that cellcore.dll had been put into
Windows CE .NET)...

Regards.


Davide
AddThis Social Bookmark Button