CS0016: Could not write to output file ‘c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP....

错误CS0016 解决方案

问题不大,但是如果不解决,很搞人!

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.

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值