• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

ASP.NETDeploymentandConfigurationProblems

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

Compiler Error Message: CS0016: Could not write to output file - Access is denied.

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

 

Compiler Error Message: CS0016: Could not write to output file ‘c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\myapp\xxxxx\xxxxx\App_GlobalResources.xxxxxxx.dll’ — ‘Access is denied. ‘

 

I had not done anything in the Global Resources file, but it was showing the error related to this. After doing some research, I found out that, it can be an issue with Antivirus software. I stopped the Antivirus software and tried, but still the problem was there. Later I found it was related to permission issue in the Temp folder. To resolve this.

Go to

%Systemroot%, normally C:\WINDOWS or C:\WINNT

Right-click the Temporary folder (mine is C:\WINDOWS\Temp) and select Sharing and Security.

Select the Sharing tab and Make sure that the folder is shared.

Select the Security tab and take a look at the list of “Group or user names:”

NETWORK SERVICE should be in the list. If it is not, click Add and type Network Service in the text box.

Make sure NETWORK SERVICE have Full Control in the Permissions list. Click OK.

Restart IIS (Run iisreset)

If your machine doesn’t have NETWORK SERVICE or NETWORK SERVICES Group, look for “IIS_IUSRS” and apply same permissions.


源地址:

http://supreethkshankar.webs.com/apps/blog/show/4959215-compiler-error-message-cs0016-could-not-write-to-output-file-access-is-denied

 

 


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap