get error 632 on RasPhoneBook add entity

Jul 2, 2011 at 9:35 PM

i debug my project

it run with no error in windows 7

but in windows xp give error 632 when i want add new entity to  RasPhoneBook


RasPhoneBook pbk = getPhoneBook();

RasEntry _entry = new RasEntry(){...};

pbk.Entries.Add(_entry);   //error on this line in windows XP

Jul 4, 2011 at 2:06 PM

You need to read the Getting Started -> Choosing your build page of the documentation... it explains in great detail what causes that exception.

Jul 4, 2011 at 3:17 PM
Edited Jul 4, 2011 at 3:24 PM

Thank you very much

this is fix my problem

i did compile  two version, one for win7 and one for winxp

but is way that  use one compile version?

Jul 4, 2011 at 6:22 PM

Again, the Getting Started -> Choosing your Build page indicates that you only need to use two different assemblies if you need features from both assemblies, in which case you'll have to work out your own build strategy to compile multiple versions of your application. If you only need features from the WINXP version you don't need to use WIN7 for Windows 7... The assemblies are all forward compatible, they just aren't backwards compatible.

Jul 4, 2011 at 8:38 PM
Edited Jul 4, 2011 at 8:55 PM

thank you for help, other question

i can create new RasEntry with optin UsePreSharedKey=True , but i can not find any reference for how i can set  PreShared Key ?

Jul 4, 2011 at 9:04 PM
Edited Jul 4, 2011 at 9:04 PM

Sorry, i find answer

must use UpdateCredentials method but i do not know use which type of RasPreSharedKey for VPN L2TP?

Jul 6, 2011 at 4:36 PM

You'd need to use the Client preshared key