| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 714 人关注过本帖
标题:急 Microsoft VBScript 运行时错误 错误 '800a000d'
只看楼主 加入收藏
mbfy
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2006-5-16
收藏
 问题点数:0 回复次数:1 
急 Microsoft VBScript 运行时错误 错误 '800a000d'
上传服务器出现这个问题

Microsoft VBScript 运行时错误 错误 '800a000d'

类型不匹配: 'SiteSetting'

/1/inc/Main.asp,行82

main.asp文件
dim ErrMsg,info
Class Cls_Site
Public Program_Version,software,Script_version,Http_version,ServerName,ServerIP,Path,URL,Database,DataTimes
Public IsAdmin,Admin_name,Admin_type,P_Admin
Public LocalIP,OnlineTime,Online,Skin
Public Browser,version,platform,IsSearch
Public SiteSetting(37),Up_Max,re
Private Sub Class_Initialize()
Startime=Timer()
Program_Version = "5.0 SP1"
software = request.ServerVariables("SERVER_Software")
Script_version = ScriptEngine & "/"& ScriptEngineMajorVersion &"."&ScriptEngineMinorVersion&"."& ScriptEngineBuildVersion
Http_version = request.ServerVariables("SERVER_Protocol")
ServerName = request.ServerVariables("Server_Name")
ServerIP = request.ServerVariables("Local_Addr")
Path = request.ServerVariables("APPL_PHYSICAL_PATH")
Dim Tmpstr,i,ScriptName
Tmpstr = Request.ServerVariables("PATH_INFO")
Tmpstr = Split(Tmpstr,"/")
i = UBound(Tmpstr)
ScriptName = Lcase(Tmpstr(i))
URL = replace(Request.ServerVariables("PATH_INFO"),ScriptName,"")
P_Admin=False
If InStr(ScriptName,"showerr")>0 Or InStr(ScriptName,"admin_")>0 Then P_Admin=True
Database = "Access"
DataTimes = 0
OnlineTime=20
Set re = New RegExp
re.IgnoreCase =True
re.Global=True
System_chk()
End Sub
Private Sub class_terminate()
If IsObject(Conninfo) Then
Conninfo.Close
Set Conninfo = Nothing
End If
End Sub
Public Sub GetSiteSetting()
if EmptyCache = true then
Call UpdateCache()
end if
for i = 0 to 37
SiteSetting(i) = Application(Site)(i+1)
Next
if SiteSetting(5) = 1 and P_Admin=False then
response.Redirect("showerr.asp?action=stop")
response.End()
end if
Skin_select()
Visit()
Counter()
End Sub
Public Function EmptyCache()
if IsArray(Application(Site)) = false then
EmptyCache = true
exit function
end if
if Application(Site)(0)=Date() Then
EmptyCache=False
exit function
else
EmptyCache=True
exit function
End if
End Function
Sub UpdateCache()
dim rs
set rs = Execute("Select * from Setting")
dim i
'0:全称,1:简称,2:logo,3:地址,4:说明,5:是否关闭,6:维护说明,7:关键字,8:描述,9:建站时间,10:站长名称,11:站长e-mail,12:站长信息,13:网站底部版权信息,14:最高在线记录|最高在线发生时间
for i = 0 to 14
SiteSetting(i) = rs(i)
next
SiteSetting(15) = Cint(Split(SiteSetting(14),"|")(0)) '15:最高在线人数
SiteSetting(16) = Split(SiteSetting(14),"|")(1) '16:最高在线发生时间
'17:上传类型,18:上传大小,19:上传目录
for i = 15 to 17
SiteSetting(i+2) = rs(i)
next
Up_Max = SiteSetting(18)*1000
SiteSetting(20) = split(rs(18),"|")(0) '20:新闻评论
SiteSetting(21) = split(rs(18),"|")(1) '21:文章评论
SiteSetting(22) = split(rs(18),"|")(2) '22:下载评论
SiteSetting(23) = rs(19) '23:风格代号
SiteSetting(24) = rs(20) '24:大LOGO 180*60
SiteSetting(25) = rs(21) '25:申请连接
SiteSetting(26) = rs(22) '26:IP记录
SiteSetting(27) = rs("c_badword") '27:评论过滤
SiteSetting(28) = rs("g_open") '28:留言开启
SiteSetting(29) = rs("g_ubb") '29:留言UBB
SiteSetting(30) = rs("g_badword") '30:留言过滤
SiteSetting(31) = rs("g_max") '31:最大字符
SiteSetting(32) = split(rs(18),"|")(3) '32:图片评论
SiteSetting(33) = split(rs(18),"|")(4) '33:音乐评论
rs.close
if SiteSetting(5) = 1 and P_Admin=False then
response.Redirect("showerr.asp?action=stop")
response.End()
end if
Dim Cache_temp(38)
Cache_temp(0) = Date()
for i = 0 to 33
Cache_temp(i+1) = SiteSetting(i)
next
Cache_temp(35) = GetNum("article")
Cache_temp(36) = GetNum("downloads")
Cache_temp(37) = GetNum("picture")
Cache_temp(38) = GetNum("music")
Application.Lock()
Application(Site) = Cache_temp
Application.UnLock()
for i = 0 to 37
SiteSetting(i) = Application(Site)(i+1)
Next
End Sub
Function GetNum(table)
Connect()
dim rs,sql,temp_Num
sql = "select id from "&table
set rs=Server.CreateObject("adodb.recordset")
rs.open sql,Conninfo,1,1
temp_Num = rs.Recordcount
set rs = nothing
GetNum = temp_Num
End Function
'以下为检查组件部分
Function IsObjInstalled(strClassString)
On Error Resume Next
IsObjInstalled = False
Err = 0
Dim xTestObj
Set xTestObj = Server.CreateObject(strClassString)
If Err = 0 Then IsObjInstalled = True
If Err = -2147352567 Then IsObjInstalled = True
Set xTestObj = Nothing
Err = 0
End Function
'FSO检测部分
Public Sub Objects()
dim installedObjects
InstalledObjects = "Scripting.FileSystemObject"
If IsObjInstalled(InstalledObjects) Then Response.Write "<font color=red><b>√</b>服务器支持!</font>" Else Response.Write "<b>×</b>服务器不支持!"
End Sub
'管理员验证
Public Sub Admin()
if request.Cookies(Site)("IsAdmin")=empty then response.Cookies(Site)("IsAdmin")=0
if request.Cookies(Site)("IsAdmin")=1 then
dim sql,rs
sql = "select * from admin where username='"&request.Cookies(Site)("Admin_name")&"'"
set rs = Execute(sql)
if rs.eof and rs.bof then
IsAdmin = False
Admin_name=Empty
Admin_type=Empty
else
IsAdmin=true
Admin_name=request.Cookies(Site)("Admin_name")
Admin_type=request.Cookies(Site)("Admin_type")
response.Cookies(Site).Expires=DateAdd("s",3600,Now())
end if
else
IsAdmin=false
Admin_name=Empty
Admin_type=Empty
end if
End Sub
Public Sub chkAdmin(flag)

[此贴子已经被作者于2006-5-16 22:57:58编辑过]

搜索更多相关主题的帖子: Microsoft VBScript 运行 
2006-05-16 22:56
mbfy
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2006-5-16
收藏
得分:0 
红色的地方就是82行!请高手帮忙!
2006-05-16 22:57
快速回复:急 Microsoft VBScript 运行时错误 错误 '800a000d'
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.048250 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved