首页 > Web开发 > 详细

.net web程序发布之后,出现编译错误

时间:2014-12-12 11:30:44      阅读:233      评论:0      收藏:0      [点我收藏+]

.net web程序发布之后,在IIS上浏览的时候出现编译错误。

CS0016: 未能写入输出文件“c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\web\4b49f661\23a749fc\******.cdcab7d2.zii776dc.dll”--“拒绝访问。 ”  

网上解决方案:

Grant full control to two users of your system “Network Service” and “YourComputerName\IIS_IUSERS” on the following folders. 
1. C:\Windows\Temp 
2. C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files 
3. Restart IIS and try run your web application again.  

个人解决方案:

1.对C:\Windows\Temp 中的Users 赋予完全权限。

2.重启IIS并运行web程序即可。

.net web程序发布之后,出现编译错误

原文:http://www.cnblogs.com/hcfan/p/4159271.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!