如果项目在IIS发布后,出现System.ComponentModel.Win32Exception: 拒绝访问。 如果项目在IIS发布后,出现System.ComponentModel.Win32Exception: 拒绝访问。 那么就试试下面的办法。 步骤如下: 应用程序池=》设置应用程序池默认设置 将标识:改为LocalSystem 即可。