Sebastien Lachance

Process.GetProcesses common errors

Here is a list of common errors I had while working with the System.Diagnostics.Process class. I listed all solutions that worked for me.

Couldn’t connect to remote machine.

Solution 1 : Open MMC (Start/Run/mmc), add the Services snap-in and enter the name of the machine you are trying to connect to. This should give the exact reason it’s failing.

Solution 2 : The inner exception could give you more information.

Solution 3 : You need server permission.

Solution 4 : Common on Windows 7 and Vista, start the Remote Registry service.

The RPC server is unavailable

Solution : Turn on File and printer sharing and make sure the firewall is configured to allow access.

Access Is Denied

Solution : In case nothing worked out of Google, try this : Open Local Security Policy and make sure the “Set Network access: Sharing and security model for local accounts” to Classic.

Comments