日期:2014-05-17  浏览次数:20717 次

Server.CreateObject("Scripting.FileSystemObject")出错,怎么解决.着急!!!
Server   对象   错误   'ASP   0178   :   80070005 '  
Server.CreateObject   访问错误  
/photo_del.asp,行   15  


上面是错误提示
==============================================
下面是15行的代码:
sub   Fun_DelFile(var_file)
        Set   MyFileObject=Server.CreateObject( "Scripting.FileSystemObject ")
    IF   MyFileObject.FileExists(var_file)   THEN
Set   afile=MyFileObject.GetFile(var_file)
afile.Delete
    END   IF
end   sub

===========================
我在安装计算机时,进行过下面处理,但是又反过来装上了,还是出错
在cmd窗口运行以下命令:  
regsvr32   /u   C:\WINNT\System32\wshom.ocx    
del   C:\WINNT\System32\wshom.ocx  
regsvr32/u   C:\WINNT\system32\shell32.dll  
del   C:\WINNT\system32\shell32.dll  




------解决方案--------------------
参考一下吧,我也是现搜的。不知是否有用。

http://soft.etcell.com/topicView.aspx?Id=84372
http://www.591hz.com/bbs/viewthread.php?tid=2
http://mg.id2.cn/BLog.asp?LID=221
------解决方案--------------------
不会是循环调用这个function的吧? 最后怎么没把FSO对象 nothing掉?
------解决方案--------------------
先用探针看一下你的系统是不是支持FSO
------解决方案--------------------
先BAIDU搜下
------解决方案--------------------
试试
把WEB服务器上IIS的默认用户改为本地的Administrator用户就可以了
http://www.stefli.com/blog/blogview.asp?logID=98&page=3