CS0016: Could not write to output file ‘c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET解决方案
2010-12-07 10:55
791 查看
错误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.
问题不大,但是如果不解决,很搞人!
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.
相关文章推荐
- [.net] 关于CS0016: Could not write to output file ‘c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files… ‘Access is denied.’ 的解决办法
- 关于CS0016: Could not write to output file ‘c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files… ‘Access is denied.’ 的解决办法
- 关于CS0016: Could not write to output file ‘c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files… ‘Access is denied.’ 的解决办法
- 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. '
- Could not write to output file 'c:\Windows\Microsoft.NET ASP.NET Files\root\xx' -- 'Access is denied
- Could not write to output file 'c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Fi
- CS0016: Could not write to output file 'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\application1\c11b43f6\cf3ec03\rizcntet.dll' . The directory name is invalid.
- Local IIS 7.0 - CS0016: Could not write to output file / Microsoft.Net > Framework > v4.0.30319 > Temporary ASP.NET Files
- Could not write to output file 'c:/WINDOWS/Microsoft.NET/Framework/v2.0.5072的处理
- Compiler Error Message: CS0016: Could not write to output file 'c:\Windows\Microsoft.NET\Framework64
- asp.net发布webservice出现‘Could not write to output file ‘解决办法
- Compiler Error Message: CS0016: Could not write to output file 'c:\Windows\Microsoft.NET\Framework64
- iis, Could not write to output file,Temporary ASP.NET Files
- 解决:Could not write to output file 'c:\windows\Microsoft.NET\Framework\........dll' -- '拒绝访问。 '
- Compiler Error Message: CS0016: Could not write to output file 'c:\Windows\Microsoft.NET\Framework64
- 关于CS0016: Could not write to output file ‘c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary AS
- Compiler Error Message: CS0016: Could not write to output file 'c:\Windows\Microsoft.NET\Framework64
- Could not write to output file 'c:/WINDOWS/Microsoft.NET/Framework/v2.0.5072的处理
- Could not write to output file 'c:\WINDOWS\Microsoft.NET\Framework\..dll-拒绝访问
- 关于CS0016: Could not write to output file ‘c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files… ‘Access is denied.’ 的解决办法