Windows Networking VPN API -- Service cannot be started

Tyler Fonzi 1 Reputation point
2022-08-31T20:33:27.867+00:00

I have several devices where my VPN program works fine on. However, on one device, I get this error:

`System.AggregateException: One or more errors occurred. (One or more errors occurred. (The service cannot be started, either because it is disabled or because it has no enabled devices associated with it. (0x80070422)))  
 ---> System.AggregateException: One or more errors occurred. (The service cannot be started, either because it is disabled or because it has no enabled devices associated with it. (0x80070422))  
 ---> System.Runtime.InteropServices.COMException (0x80070422): The service cannot be started, either because it is disabled or because it has no enabled devices associated with it. (0x80070422)  
   at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|20_0(Int32 hr)  
   at WinRT.ExceptionHelpers.ThrowExceptionForHR(Int32 hr)  
   at ABI.Windows.Networking.Vpn.IVpnManagementAgentMethods.UpdateProfileFromObjectAsync(IObjectReference _obj, IVpnProfile profile)  
   at Windows.Networking.Vpn.VpnManagementAgent.UpdateProfileFromObjectAsync(IVpnProfile profile)`  

I am unsure why this happens -- it seems to be related to VpnManagementAgent.UpdateProfileFromObjectAsync

Universal Windows Platform (UWP)
Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,274 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Limitless Technology 39,376 Reputation points
    2022-09-02T07:37:52.74+00:00

    Hello there,

    If a Windows Resource Protection (WRP) or respected file is missing or is corrupted, Windows may not behave as expected. Run System File Checker (SFC) scan to fix any corrupt system files.

    On the server side, check whether any of the following issues occurs:

    -The static IP Pool is exhausted.
    -The DHCP server for the RRAS is not available or its scope is exhausted.
    -The static IP address that's configured in the Active Directory user properties can't be assigned.

    Please follow additional Troubleshooting from the below links https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/troubleshoot-error-720-when-establishing-a-vpn-connection

    --------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept it as an answer--

    0 comments No comments

  2. Peter Smith 581 Reputation points Microsoft Employee
    2022-09-07T22:11:14.03+00:00

    There's two things you can try:

    1. the service in question is probably the RASMAN service. Can you start it manually? If it won't start manually, what error message does it give? If it can start manually, does that fix the VPN issue?
    2. Can you please file a Feedback item for this? When you do, make sure that it's in the VPN category, and do a repro of the problem. That we we can get good logs of the problem.
    0 comments No comments