gunwin
gunwin

Reputation: 4832

DotRas error enumerating devices - RasException (Error code 1070)

Then trying to execute the following line:

ReadOnlyCollection<RasDevice> list = RasDevice.GetDevices();

I get a very non-helpful RasException (Error code 1070).

This is also thrown when executing

RasDevice.GetDeviceByName(...);

I have ran the application as administrator.

Is there a reason why enumerating the available devices may fail?

Upvotes: 1

Views: 4632

Answers (1)

Valerio
Valerio

Reputation: 278

In my case the problem was the WAN miniport, so I checked them into Device Manager and had a little yellow Icon on them saying

"This device is not working properly because Windows cannot load the drivers required for this device. (Code 31)".

So after some hours of research I came across this website and it gave a solution that solved my problem. I'll post it here, maybe It can help you.

https://www.vpnhosting.cz/index.php/clanky/wan-miniport-repair-tool-solve-vpn-and-dial-up-error-code-720-and-similar-ppperrors.html

and these are the istraction you've to follow:

  1. Run Wan miniport repair tool.
  2. Restart Computer.
  3. run Wan miniport installer.
  4. Restart computer again and enjoy.

I hope this can help!

Upvotes: 1

Related Questions