引发的异常:“System.ComponentModel.Win32Exception”(位于 System.dll 中)

在执行System.Diagnostics.Process.Start("explorer.exe", "http://www.baidu.com");

时,引发的异常:“System.ComponentModel.Win32Exception”(位于 System.dll 中)。拒绝访问

怀疑是C盘访问权限导致的,升级打开vs的权限为超级管理员,再运行,仍然报错。网上都是说权限问题,但无用。

经过排查,发现是安全软件拦截,将360安全软件退出后,再运行,不再报错。

原文地址:https://www.cnblogs.com/Betty-IT/p/13594354.html