VPN error 691 on programmatically made connection

  • Thread starter Thread starter Karol Martinka
  • Start date Start date
K

Karol Martinka

Hi!

I'm encountering problems on some systems which are configured same as
another and connecting to same server.
This problem is on Windows 2000 and XP.

I have a VPN connection to ADSL provider with saved username/password. If I
make this VPN connection as common (in Networking) it works fine. But if I
try to connect to it programmatically it returns error 691 .
(The function RasDial( ) returns 691)
It works fine for 99% of cases, but 1% of my customers encounter this error.
(it is'nt occasionally. If it once return 691 it stays so even after
restarting, reinstalling service pack etc.)

I get the parameters for dialing throught function : RasGetEntryDialParams()
and pass the second parameter to RasDial.

Please help!

Thank you!
Karol
 
The right credentials ( username + password + domain etc. ) are not being
used during dialing. You could specify the credentials each time you dial if
this solves your problem.
 
Back
Top