I dont think I have ever been as frustrated the past 3 days in my
entire life until the last couple of days.
Platform : Pocket pc 2003 ( ppc)
Language c# compact framework.net ( cf.net)
I am currently working on a project that involves the user going to a
"job" which they have been asssigned to. Upon completion, sending the
details of that job back to the server and collect any new jobs
waiting. The easiest way to do this would be to use VPN or perhaps
FTP.
Great, made sure we could do this by manually setting up a vpn
connection and browsing the network through file explorer which worked
fine.
The next task is to set this connection up in code so that when the
client has finished the connection is made behind the scenes and no
interevntion is necessary.
This seems to be impossible.
In order for us to connect to the VPN we first have to connect to our
provider (the interent) and then into our server. We can do this
manually easily enough.
How do you do it in c#?
We thought well how easy would it be if we can set up the connection
first and then run the software and then using a unc path the file
should be easy enough to get. Exceptions are then thrown because it
cant find the file. Is that important???
This whole application is written in c# using the compact framework
and is 96% complete. All I need to do is to say connect to the vpn and
thats it.
I have found the connections in the registry:
hk...user->comm->Rasbook-><<connections>>
But have no idea what to do with it.
Can anyone help. I cannot be the only one to have had this problem and
have got no idea where to go. I have tried the RasDial code but it
through a system not supported exception. That seems to be the closest
but....
I am going insane!!!
Cheers
John