at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) at System.Diagnostics.NtProcessManager.GetModuleInfos(Int32 processId, Boolean firstModuleOnly) at System.Diagnostics.NtProcessManager.GetFirstModuleInfo(Int32 processId) at System.Diagnostics.Process.get_MainModule() at TestCnsole2.Class3.GetProcessesByFileName(String searchFileName, String pcName) in C:\Users\toufu\source\repos\TestCnsole2\TestCnsole2\Class3.cs:line 77