未能写入输出文件..”--“拒绝访问。”的解决办法

CS0016: 未能写入输出文件“d:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\test\d087da43\c12930d8\9ze28k_8.dll”--“拒绝访问。”的解决方法

我当时用网上说的那种“垃圾清理”批(如aa.bat这样的),上面说的挺让人心动,但是,安装vs2003的朋友们要注意了。不要轻易运用它,我正是用它想清理一下系统,谁知道,竟然灾难性的把我电脑上的所有项目给否决了。也就是出现了如题的错误,郁闷呀,我在网上转悠了一上午,有些帖子说,给WINDOWS\temp 授予network service 修改,读取和运行,读取,写入权限;有的说给WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files network service 完全控制权限。但是对我来说都没有解决问题。无奈,继续找。。。最后还是在微软的网站上找到了久违的解决方案:(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:

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.

希望朋友们,尤其是用vs2003的朋友们以后多多注意呀。 [行业交流]

转载于:https://www.cnblogs.com/igouz/archive/2008/12/12/1353473.html

未能写入输出文件..”--“拒绝访问。”的解决办法 [转]相关推荐

  1. CS0016: 未能写入输出文件...\App_Web_default.aspx.cdcab7d2.zii776dc.dll”--拒绝访问。 解决方法

    Asp.net部署后访问网站出现问题(Windows 7 旗舰版): CS0016: 未能写入输出文件"c:\Windows\Microsoft.NET\Framework\v4.0.303 ...

  2. IIS异常:CS0016: 未能写入输出文件“c:\WINDOWS\Microsoft.NET\Framework\.。。”--“拒绝访问...

    CS0016: 未能写入输出文件"c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/........ ...

  3. 未能写入输出文件“c:\Windows\Microsoft.NET\Framework... AppCode.dll 拒绝访问

    今日发布一个ASP.NET WEB服务是遇到报错: 未能写入输出文件"c:\Windows\Microsoft.NET\Framework... AppCode.dll 拒绝访问. 网上找方 ...

  4. CS0016: 未能写入输出文件的解决方法

    "/"应用程序中的服务器错误. -------------------------------------------------------------------------- ...

  5. CS0016: 未能写入输出文件“xxxxxx.dll”--“目录名称无效。解决方法

    VS2013发布WEBAPI到文件夹.本地IIS,在IIS配置网站浏览提示: CS0016: 未能写入输出文件"xxxxxxx\Temporary ASP.NET Files\xxxxxx. ...

  6. 主题:CS0016: 未能写入输出文件“c:#92;WINDOWS#92;Microsoft.NET#92;***.dll”错误处理...

    刚装完.NET环境,在编译时出现了如下错误: 编译器错误信息:CS0016:   未能写入输出文件"c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\ ...

  7. 计算机连接拒绝访问,Win10系统下Windows无法连接到打印机,拒绝访问的解决办法...

    我们在办公的时候,经常会使用打印机共享的功能,近期有一位Win10用户在共享打印机的时候,系统提示了"Windows无法连接到打印机,拒绝访问"的错误.原因是用户和组没有every ...

  8. 对于引用的控件被拒绝访问的解决办法的补充(续)

    在上个月,我曾经写过"对于引用的控件被拒绝访问的解决办法的补充", 见http://liuyuer.cnblogs.com/archive/2005/10/12/253063.ht ...

  9. 服务器d盘位置不可用,win10系统无法访问D盘提示“位置不可用 拒绝访问”的解决办法...

    有时候可能会遇到win10系统无法访问D盘提示"位置不可用 拒绝访问"的情况,想必大家都遇到过win10系统无法访问D盘提示"位置不可用 拒绝访问"的情况吧,那 ...

最新文章

  1. html,css,javascript之间的关系是什么?各是负责哪方面工作的?
  2. arduino如何调用mysql,【 实测可用 】Arduino 直接访问 mysql
  3. 野火 stm32f429 pcb_PCB板价格是如何核算的
  4. Extension field添加到CDS view上的技术实现
  5. BZOJ 1827: [Usaco2010 Mar]gather 奶牛大集会 树形DP + 带权重心
  6. python argparse nargs_Python | 使用argparse解析命令行参数
  7. 【英语学习】【Level 08】U05 Better option L5 A picture is worth a thousand words
  8. 远程桌面连接无法相互拷贝文件了?
  9. 第1-2讲 初识SLAM
  10. SQL Server 触发器 详细讲解
  11. w7电脑蓝屏怎么解决_电脑蓝屏Win32k.sys怎么办
  12. iOS开发需要哪些图片?
  13. 复制百度文库的文字加什么后缀_如何复制百度文中的文章.doc
  14. Linux下安装配置maven
  15. 虚拟服务器+ftp上传错误,虚拟主机FTP无法上传文件解决办法
  16. unity 场景模型烘焙黑斑、黑点、漏光、不正常
  17. 如何在VMware Workstation上安装Nutanix CE的解决方案
  18. 【Linux】gcc编译器下载与手动安装
  19. java订单派单规则_重点解读 | 什么是派单?派单的好处有哪些?
  20. C++ 类型转换(static_cast、dynamic_cast、reinterpret_cast、const_cast)

热门文章

  1. C#汉字转换拼音技术详解
  2. 2021年腾讯云备战双11:企业专属1.1折代金券(888元)
  3. 架设FTP Server
  4. word无法创建工作文件,请检查临时环境变量
  5. Inter VT技术(硬件虚拟化检测)
  6. java游戏应龙女魃转世_应龙与女魃的爱情故事,应龙在黄泉海边等待女魃数千年...
  7. SCADA系统架构、类型和应用
  8. Linux建立软链接、硬链接
  9. Win7系统只要一打开浏览器就死机 win7打开网页浏览器卡死怎么办
  10. linux fq队列,QOS各种队列详解(FIFO,FQ,CBWFQ,PQ).doc