Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

VPN using connection manager API

 
   PDA (Home) -> Pocket PC - DevNet RSS
Next:  How to do silent install?  
Author Message
Abhi

External


Since: Jun 06, 2008
Posts: 17



(Msg. 1) Posted: Tue Oct 21, 2008 4:37 pm
Post subject: VPN using connection manager API
Archived from groups: microsoft>public>pocketpc>developer>networking (more info?)

I am using the managed connection manager API from OpenNETCF. Right
now I am trying to connect using the below code, but I am not able to
establish a connection with it. After the Connect( ) call is made
below, a box pops up on the phone saying that it is connecting to the
network, but when the program exits, the network is not actually
connected for some reason.Could anyone please help me here?

Thanks,


ConnectionManager NetCon = new ConnectionManager();
ConnectionDetail NetConDet = null;
foreach (ConnectionDetail cd in
ConnectionManager.ConnectionDetailItems)
{

if ((cd.ConnectionType == ConnectionType.VPN) &&
(cd.ConnectionSubType == ConnectionSubType.PPTP))
{
NetConDet = cd;
break;
}
}

if (NetConDet == null)
throw new Exception("No VPN network configured");

NetCon.Connect(NetConDet.DestinatonNetwork, true,
ConnectionMode.Asynchronous);

while (NetCon.Status != ConnectionStatus.Connected)
{
System.Threading.Thread.Sleep(5000);
}
Back to top
Login to vote
Display posts from previous:   
Related Topics:
How does WZC use the connection manager? - In WM5 if I disable WZC and then use Ndisuio to connect to a wireless network, even though I connect and get an IP address, can ping web sites, I still cannot use pocket explorer to surf the web. The connection manager complains that no connection is..

pIE and Connection Manager Interface prioritization - I have a question on how the Connection Manager prioritizes interfaces. In specific I am trying to solve a browsing problem on pIE on Windows Mobile 5.0 device. I have multiple interfaces active, all connecting to the internet. When I attempt to brows...

Connection Manager - access to localhost - Pocket Inbox - I am using a HP 6300 GPRS / WiFi PPC 2003 SE. I have a micro smtp / pop3 server that runs on the unit. PocketInbox is configured to use pop3 as a transport, using 127.0.0.1 as the addresses When pocket inbox attempts to connect to the smpt / pop3..

Connection Manager issue in Windows Mobile 5.0 PPC - Hi, I am working on a PPC device, which supports GPRS and WiFi connectivity. With both GPRS and WiFi connected, I run my application on WiFi. Later, when I disconnect GPRS externally, my application stops returning a data connection failure. Note: I....

Windows mobile 2003 DUN connection to RAS Server via BT (M.. - Hello, Can anyone tell me why: 1) Windows mobile 2003 (Intermec device) DUN connection to RAS Server via BT (Motorola/Nextel) modem authentication/connection never completes? note: Phone shows "data call setup" and below is corresponding f...
       PDA (Home) -> Pocket PC - DevNet All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
 Linux Forums
 Mac Forums
  PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact