Could not write to output file 'c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Fi

iis部署好了,访问报错Could not write to output file 'c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\6d5a6f38\28b31280\App_global.asax.z8e9mvo3.dll' -- '拒绝访问。

找遍了网上的资料最后总结为以下几步::

  • Cleaned the "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files" folder
  • Gave Full permissions to IIS_IUSRS group
  • Gave Full permissions to "Everone"
  • Ran the following command too: %windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis -i

最后给 "C:\Windows\Temp"文件夹加上 IIS_IUSRS的权限就好了



你可能感兴趣的:(iis)