dheerajbhat
asked on
RASDial and VPN Connection.Error 619 when used in windows service
Hi,
I am trying to establish a VPN connection using RAS API.The sample
code which comes with Microsoft Platform SDK for windows XP(RasDial.c)
works fine when run it as an exe.I converted this code to a Windows
Service.I am running this windows service under an Administrative user
account(and not the normal localsystem account).When I start the
service after the user logs in,it works fine and the VPN connection is
established.However when the same service starts automatically,on
system restart,it fails with error code 619(ERROR_PORT_DISCONNECTE D).Does it have anything to do
with user login or network library initialization?What else should I initialize?
Anyways my requirement is that the VPN connection needs to be
established before the user logs in.I have a customized login process(by writing my own Custom GINA dll) where the user info is to be sent to a server on user logon.To access the server VPN connection is to be up. Is there any other way in which i can achieve the same.
Regards
I am trying to establish a VPN connection using RAS API.The sample
code which comes with Microsoft Platform SDK for windows XP(RasDial.c)
works fine when run it as an exe.I converted this code to a Windows
Service.I am running this windows service under an Administrative user
account(and not the normal localsystem account).When I start the
service after the user logs in,it works fine and the VPN connection is
established.However when the same service starts automatically,on
system restart,it fails with error code 619(ERROR_PORT_DISCONNECTE
with user login or network library initialization?What else should I initialize?
Anyways my requirement is that the VPN connection needs to be
established before the user logs in.I have a customized login process(by writing my own Custom GINA dll) where the user info is to be sent to a server on user logon.To access the server VPN connection is to be up. Is there any other way in which i can achieve the same.
Regards
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.