Vpn not connecting

I tried everything and this worked. open services then go to app layer gateway. set to automatic,start and apply. do the same for network connection, network location awareness, both remote procedure call,plug and play and telephony.I restarted and my computer and my vpn is connecting. hope this helps.