Rootop 服务器运维与web架构

Compiler Error Message: CS0016: Could not write to output file ‘c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\xxx’ — ‘Access is denied. ‘

| 暂无评论

原文出处:http://www.cnblogs.com/jinzhao/archive/2013/03/06/2946235.html

今天在阿里云虚拟机上部署新站点后出现下面的错误:

Compiler Error Message: CS0016: Could not write to output file ‘c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\xx’ — ‘Access is denied. ‘ 


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

  • 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的权限就好了。

 

原创文章,转载请注明。本文链接地址: https://www.rootop.org/pages/1764.html

作者:Venus

服务器运维与性能优化

发表回复