Reputation: 4832
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
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.
and these are the istraction you've to follow:
I hope this can help!
Upvotes: 1