<p>Microsoft VBScript 运行时错误 <font size="2" face="宋体">错误 ’800a01a8’</font> </p>
<p><font size="2" face="宋体">缺少对象: ’Application(...)’</font><br/></p>
<p><font size="2" face="宋体">/bbs/inc/Dv_ClsMain.asp</font></p>
<p>连接FTP查看文件Dv_ClsMain.asp,属性一切正常,突然想起来昨天往服务器上传过东西,是不是没更新缓存的原因。 <wbr></p>
<p> <wbr></p>
<p>动网论坛清理缓存文件</p>
<p>新建一个文本文档,把以下代码复制进去,然后另存为文件CleanCache.asp。(格式为.asp的,如果您的文件没有显示文件格式,请进行以下设置:打开我的电脑,选择最上面的:工具,然后选择里面的:文件夹选项,之后会弹出一个对话框来,选择:查看,在里面找到:隐藏已知文件类型的扩展名,将它前面的对勾去掉点确定既可.)</p>
<p><%<br/>'-------------------------------------------<br/>' Dvbbs System Update Software Tools<br/>' ClearCache File<br/>' 动网先锋 <br/>' ScriptEditor Fssunwin<br/>' 2005-03-25<br/>'-------------------------------------------<br/>Call RemoveAllCache()<br/><br/>Sub RemoveAllCache()<br/> <wbr>Dim cachelist,i<br/> <wbr>Call InnerHtml("UpdateInfo","<b>开始执行清理当前站点缓存</b>:")<br/> <wbr>Cachelist=split(GetallCache(),",")<br/> <wbr>If UBound(cachelist)>1 Then<br/> <wbr> <wbr>For i=0 to UBound(cachelist)-1<br/> <wbr> <wbr> <wbr>DelCahe Cachelist(i)<br/> <wbr> <wbr> <wbr>Call InnerHtml("UpdateInfo","更新 <b>"&cachelist(i)&"</b> 完成")<br/> <wbr> <wbr>Next<br/> <wbr> <wbr>Call InnerHtml("UpdateInfo","更新了"& UBound(cachelist)-1 &"个缓存对象<br>")<br/> <wbr>Else<br/> <wbr> <wbr>Call InnerHtml("UpdateInfo","<b>当前站点全部缓存清理完成。</b>。")<br/> <wbr>End If<br/>End Sub<br/><br/>Function <wbr> GetallCache()<br/> <wbr>Dim Cacheobj<br/> <wbr>For Each Cacheobj in Application.Contents<br/> <wbr> <wbr>GetallCache = GetallCache & Cacheobj & ","<br/> <wbr>Next<br/>End Function<br/><br/>Sub DelCahe(MyCaheName)<br/> <wbr>Application.Lock<br/> <wbr>Application.Contents.Remove(MyCaheName)<br/> <wbr>Application.unLock<br/>End Sub<br/><br/>Sub InnerHtml(obj,msg)<br/> <wbr>Response.Write "<li>"&msg&"</li>"<br/> <wbr>Response.Flush<br/>End Sub<br/>%><br/><br/>然后上传至服务器,通过http://你的域名/CleanCache.asp访问,清除缓存即可。</p>
<p> </p>
<p>或者,如果可以连接远程服务器重启IIS服务器即可。</p>
<p> </p>
<p>刷新访问,问题解决。</p>
<p> </p>
<p>总结:</p>
<p><wbr></p>
<p><font size="2" face="宋体">原因:缓存文件异常.</font></p>
<p><font size="2" face="宋体">解决方法:更新缓存,把缓存文件删除或重启IIS.</font></p>
页:
[1]