编译器错误信息: CS0016: 未能写入输出文件 解决方法
来源:互联网 发布:全国软件城市排名 编辑:程序博客网 时间:2024/05/16 14:23
错误 提示的是
C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files里面的某个文件没有写入权限
但是即使我给他授予Everyone的完全控制权限也不行
查看了一下微软的官方说明,问题解决:
1.给C:/temp添加用户NETWORK SERVICE
2.授予NETWORK SERVICE完全控制权限
3.在系统环境变量TEMP和TMP里加入 %SystemRoot%/TEMP
然后就OK了 如果还不行,微软建议你重启IIS 或 Windows
附:
微软官方原文 http://support.microsoft.com/default.aspx?scid=kb;en-us;825791
SYMPTOMS
When you view a Microsoft ASP.NET Application in a Web browser, you may receive the following error messages:
For the Microsoft .NET Framework version 1.1, the error message is the following:
For the Microsoft .NET Framework version 1.1, the error message is the following:
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.
For the .NET Framework 1.0, the error message is the following:CS0013: Unexpected error writing metadata to file 'C:/WINDOWS/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/application2/3fc72f26/eb731247/ev2bslce.dll'. The directory name is invalid.
Back to the top
CAUSE
The system TEMP and TMP variables point to a folder that does not exist. The compiler generates temporary files in the folder where the TEMP and the TMP variables point to before the files are copied to the Temporary ASP.NET Files folder. However, the folder where the system variables point to is deleted when you restart the computer. Therefore, the compiler cannot generate the temporary files.
Back to the top
RESOLUTION
1. Create a temporary folder under %Systemroot%, and then name it Temp. 2. Grant full permissions on the Temp folder to the aspnet user account in .NET Framework 1.0 or to the NETWORK SERVICE user account in .NET Framework 1.1. 3. Right-click My Computer, and then click Properties. 4. On the Advanced tab, click Environment Variables. 5. Select the TEMP variable under System variables, and then click Edit. 6. Type %SystemRoot%/TEMP in the Variable Value box, and then click OK. 7. Repeat steps 5 and 6 to edit the TMP variable. Click OK two times. 8. Click Start, and then click Run. 9. To reset Internet Information Services (IIS), type iisreset on the command prompt.
Note If the error message that is mentioned in the "Symptoms" section of this article persists, restart the computer.
Note If the error message that is mentioned in the "Symptoms" section of this article persists, restart the computer.
- 编译器错误信息: CS0016: 未能写入输出文件 解决方法
- “编译器错误信息: CS0016: 未能写入输出文件”解决方法
- “编译器错误信息: CS0016: 未能写入输出文件”解决方法
- iis 编译器错误信息: CS0016: 未能写入输出文件 解决方法
- 编译器错误信息: CS0016: 未能写入输出文件 解决方法
- .net 编译器错误信息: CS0016: 未能写入输出文件 解决方法
- 编译器错误信息: CS0016: 未能写入输出文件 解决方法
- 编译器错误信息: CS0016:未能写入输出文件
- 编译器错误信息: CS0016: 未能写入输出文件
- 编译器错误信息: CS0016: 未能写入输出文件 拒绝访问
- 解决:编译器错误信息: CS0016: 未能写入输出文件
- 编译器错误信息: CS0016: 未能写入输出文件 错误处理
- iis发布.net网站 编译器错误信息: CS0016: 未能写入输出文件 解决方法
- 编译器错误信息: CS0016: 未能写入输出文件,../Temporary ASP.NET Files/WebApp8.dll”--拒绝访问
- 编译器错误信息: CS0016: 未能写入输出文件“c:/WINDOWS/Microsoft.NET/Framework/
- Win7下:编译器错误信息: CS0016: 未能写入输出文件“c:/Windows/Microsoft.NET/Framework……”
- win7中安装asp.net的问题 编译器错误信息: CS0016: 未能写入输出文件
- 解答“编译器错误信息: CS0016: 未能写入输出文件”的可靠办法
- svn的钩子
- 开Blog第一天 庆祝
- Axis Session 关于Web Service Forum 用户登录 用户名 密码 的 保存
- 文件系统原理
- VC中几个小应用
- 编译器错误信息: CS0016: 未能写入输出文件 解决方法
- MASM写的盗Q程序
- 转载:string 类的使用方法
- 活着,是不是一种幸福?
- 基于最小二叉堆的优先级队列-C#实现,以此为基础的K路合并排序算法
- 别人的紅警心得(原創)
- 开始Python -- Python基础(2)
- Sleepless in 《Java夜未眠》
- 域名注册商的黑手