我在网上运行了一个删除系统垃圾的批处理问题,结果IIS就无法运行.NET项目了。出错信息如下:
编译错误
说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。 编译器错误信息: CS0016: 未能写入输出文件“c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\sunshine_1\dce82ca1\8b24e827\getqrjpk.dll”--“拒绝访问。 ”源错误:[没有相关的源行]
我用的笔记本,刚好光驱坏了,系统无法重做,现在又急用,哪位高人能帮帮我,我应该如何解决。
在线等,急。
编译错误
说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。 编译器错误信息: CS0016: 未能写入输出文件“c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\sunshine_1\dce82ca1\8b24e827\getqrjpk.dll”--“拒绝访问。 ”源错误:[没有相关的源行]
我用的笔记本,刚好光驱坏了,系统无法重做,现在又急用,哪位高人能帮帮我,我应该如何解决。
在线等,急。
解决方案 »
- 添加引用
- ASP.NET web应用程序连接不上SQL数据库
- 大家讨论一下,在学.net一定程度厚(可以做简单的电子商务)下一步怎么发展呢?
- treeview RenderControl后产生的html不对,ID都一样,而且-+都是doPostback了
- 在.net中,dll文件如何读取配置文件。
- MVC MEF使用
- 谁有水晶报表9.2版本(附带注册码)?谢绝“友情回复”!
- 奇怪的安装错误,大家看看
- 移动跟pc端问题
- ASP.NET 书上关于页面加载事件(Page_Init)的说明,看不懂,求指教————
- 一个物理存在想通过动态加载搞到ascx中的,像asp中的include一样,只要告诉我路径,就可以把你包进来,不知道怎么做
- 请问,如何用VS.NET编译生成一个程序,我要把它放到服务器上
echo 正在清除系统垃圾文件,请稍等......
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
echo 清除系统LJ完成!
echo. & pause
这是我运行的批处理文件,运行后就不好使了。刚才建立了一个ASP站点,程序也不能运行了,IIS我重新安装过了,可好像还是不好使。
具体解决方法请参照
http://support.microsoft.com/default.aspx?scid=kb;en-us;825791
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. 能给译下吗?谢谢
2.把临时文件夹的所有权限赋给aspnet帐户
3.右击我的电脑,选择属性
4.在高级选项卡中,单击环境变量
5.选择系统变量下的Temp变量进行编辑
6.在输入框中输入系统根目录\Temp,点击ok
7.重复5,6步编辑TMP变量,点击2次ok
8.单击开始菜单,选择运行
9.在命令行中重启iis服务8不知道译得对不对,呵呵
也可以重裝系統啊系統從網絡上拷到硬盤上裝
再用虛擬光驅安裝vs.net