余志国网站设计工作室是专业从事义乌网站建设、义乌外贸网站建设、义乌网站制作、义乌网站设计的专业义乌网站建设工作室,是义乌外贸网站建设专家!

Windows2003服务器安全-附件-ASP错误大全

分类:网络安全 Tags: asp 错误 评论:0 浏览:7055 最近更新时间:2006/12/14 13:16:33

ASP错误大全

对初学者们有帮助,或许高手也会忘记,ASP错误大全
MicrosoftVBScript语*错误(0x800A03E9)-->内存不足
MicrosoftVBScript语*错误(0x800A03EA)-->语*错误
MicrosoftVBScript语*错误(0x800A03EB)-->缺少 ':'
MicrosoftVBScript语*错误(0x800A03ED)-->缺少 '('
MicrosoftVBScript语*错误(0x800A03EE)-->缺少 ')'
MicrosoftVBScript语*错误(0x800A03EF)-->缺少 ']'
MicrosoftVBScript语*错误(0x800A03F2)-->缺少标识符
MicrosoftVBScript语*错误(0x800A03F3)-->缺少 '='
MicrosoftVBScript语*错误(0x800A03F4)-->缺少 'If'
MicrosoftVBScript语*错误(0x800A03F5)-->缺少 'To'
MicrosoftVBScript语*错误(0x800A03F6)-->缺少 'End'
MicrosoftVBScript语*错误(0x800A03F7)-->缺少 'Function'
MicrosoftVBScript语*错误(0x800A03F8)-->缺少 'Sub'
MicrosoftVBScript语*错误(0x800A03F9)-->缺少 'Then'
MicrosoftVBScript语*错误(0x800A03FA)-->缺少 'Wend'
MicrosoftVBScript语*错误(0x800A03FB)-->缺少 'Loop'
MicrosoftVBScript语*错误(0x800A03FC)-->缺少 'Next'
MicrosoftVBScript语*错误(0x800A03FD)-->缺少 'Case'
MicrosoftVBScript语*错误(0x800A03FE)-->缺少 'Select'
MicrosoftVBScript语*错误(0x800A03FF)-->缺少表达式
MicrosoftVBScript语*错误(0x800A0400)-->缺少语句
MicrosoftVBScript语*错误(0x800A0401)-->语句未结束 
MicrosoftVBScript语*错误(0x800A0402)-->缺少整型常数 
MicrosoftVBScript语*错误(0x800A0403)-->缺少 'While' 或 'Until'
MicrosoftVBScript语*错误(0x800A0404)-->缺少 'While', 'Until' 或语句未结束
MicrosoftVBScript语*错误(0x800A0405)-->缺少 'With'
MicrosoftVBScript语*错误(0x800A0406)-->标识符过长
MicrosoftVBScript语*错误(0x800A0407)-->无效数字
MicrosoftVBScript语*错误(0x800A0408)-->无效字符
MicrosoftVBScript语*错误(0x800A0409)-->未结束的字符串常量
MicrosoftVBScript语*错误(0x800A040A)-->注释未结束
MicrosoftVBScript语*错误(0x800A040D)-->无效使用 'Me' 关键字
MicrosoftVBScript语*错误(0x800A040E)-->'loop' 语句缺少 'do'
MicrosoftVBScript语*错误(0x800A040F)-->无效的 'exit' 语句
MicrosoftVBScript语*错误(0x800A0410)-->循环控制变量 'for' 无效
MicrosoftVBScript语*错误(0x800A0411)-->名称重定义
MicrosoftVBScript语*错误(0x800A0412)-->必须是行中的第一个语句
MicrosoftVBScript语*错误(0x800A0413)-->不能为 non-ByVal 参数赋值
MicrosoftVBScript语*错误(0x800A0414)-->调用子程序时不能使用括号
MicrosoftVBScript语*错误(0x800A0415)-->缺少文字常数
MicrosoftVBScript语*错误(0x800A0416)-->缺少 'In'
MicrosoftVBScript语*错误(0x800A0417)-->缺少 'Class'
MicrosoftVBScript语*错误(0x800A0418)-->必须在一个类的内部定义
MicrosoftVBScript语*错误(0x800A0419)-->在属性声明中缺少 Let , Set 或 Get
MicrosoftVBScript语*错误(0x800A041A)-->缺少 'Property'
MicrosoftVBScript语*错误(0x800A041B)-->在所有属性的规范中,变量的数目必须一致
MicrosoftVBScript语*错误(0x800A041C)-->在一个类中不允许有多个缺省的属性/方*
MicrosoftVBScript语*错误(0x800A041D)-->类的初始化或终止程序没有参数
MicrosoftVBScript语*错误(0x800A041E)-->属性的 set 或 let 必须至少有一个参数
MicrosoftVBScript语*错误(0x800A041F)-->错误的 'Next'
MicrosoftVBScript语*错误(0x800A0420)-->'Default' 只能在 'Property' , 'Function' 或 'Sub' 中指定
MicrosoftVBScript语*错误(0x800A0421)-->指定 'Default' 时必须同时指定 'Public' ")
MicrosoftVBScript语*错误(0x800A0422)-->只能在 Property Get 中指定 'Default'
MicrosoftVBScript 运行时错误(0x800A0005)-->无效的过程调用或参数
MicrosoftVBScript 运行时错误(0x800A0006)-->溢出
MicrosoftVBScript 运行时错误(0x800A0007)-->内存不足
MicrosoftVBScript 运行时错误(0x800A0009)-->下标越界
MicrosoftVBScript 运行时错误(0x800A000A)-->该数组为定长的或临时被锁定
MicrosoftVBScript 运行时错误(0x800A000B)-->被零除
MicrosoftVBScript 运行时错误(0x800A000D)-->类型不匹配
MicrosoftVBScript 运行时错误(0x800A000E)-->字符串空间不够
MicrosoftVBScript 运行时错误(0x800A0011)-->不能执行所需的操作
MicrosoftVBScript 运行时错误(0x800A001C)-->堆栈溢出
MicrosoftVBScript 运行时错误(0x800A0023)-->未定义过程或函数
MicrosoftVBScript 运行时错误(0x800A0030)-->加载 DLL 时出错
MicrosoftVBScript 运行时错误(0x800A0033)-->内部错误
MicrosoftVBScript 运行时错误(0x800A0034)-->错误的文件名或号码
MicrosoftVBScript 运行时错误(0x800A0035)-->文件未找到
MicrosoftVBScript 运行时错误(0x800A0036)-->错误的文件模式
MicrosoftVBScript 运行时错误(0x800A0037)-->文件已经打开 
MicrosoftVBScript 运行时错误(0x800A0039)-->设备 I/O 错误
MicrosoftVBScript 运行时错误(0x800A003A)-->文件已存在
MicrosoftVBScript 运行时错误(0x800A003D)-->磁盘已满
MicrosoftVBScript 运行时错误(0x800A003E)-->输入超出了文件尾
MicrosoftVBScript 运行时错误(0x800A0043)-->文件过多
MicrosoftVBScript 运行时错误(0x800A0044)-->设备不可用
MicrosoftVBScript 运行时错误(0x800A0046)-->没有权限
MicrosoftVBScript 运行时错误(0x800A0047)-->磁盘没有准备好
MicrosoftVBScript 运行时错误(0x800A004A)-->重命名时不能带有其他驱动器符号
MicrosoftVBScript 运行时错误(0x800A004B)-->路径/文件访问错误
MicrosoftVBScript 运行时错误(0x800A004C)-->路径未找到
MicrosoftVBScript 运行时错误(0x800A005B)-->对象变量未设置
MicrosoftVBScript 运行时错误(0x800A005C)-->For 循环未初始化
MicrosoftVBScript 运行时错误(0x800A005E)-->无效使用 Null
MicrosoftVBScript 运行时错误(0x800A0142)-->不能创建所需的临时文件
MicrosoftVBScript 运行时错误(0x800A01A8)-->缺少对象
MicrosoftVBScript 运行时错误(0x800A01AD)-->ActiveX 部件不能创建对象
MicrosoftVBScript 运行时错误(0x800A01AE)-->类不能支持 Automation 操作
MicrosoftVBScript 运行时错误(0x800A01B0)-->Automation 操作中文件名或类名未找到
MicrosoftVBScript 运行时错误(0x800A01B6)-->对象不支持此属性或方*
MicrosoftVBScript 运行时错误(0x800A01B8)-->Automation 操作错误
MicrosoftVBScript 运行时错误(0x800A01BD)-->对象不支持此操作
MicrosoftVBScript 运行时错误(0x800A01BE)-->对象不支持已命名参数
MicrosoftVBScript 运行时错误(0x800A01BF)-->对象不支持当前区域设置
MicrosoftVBScript 运行时错误(0x800A01C0)-->未找到已命名参数
MicrosoftVBScript 运行时错误(0x800A01C1)-->参数是必选项
MicrosoftVBScript 运行时错误(0x800A01C2)-->错误的参数个数或无效的参数属性值
MicrosoftVBScript 运行时错误(0x800A01C3)-->对象不是一个集合
MicrosoftVBScript 运行时错误(0x800A01C5)-->未找到指定的 DLL 函数
MicrosoftVBScript 运行时错误(0x800A01C7)-->代码资源锁定错误
MicrosoftVBScript 运行时错误(0x800A01CA)-->变量使用了一个 VBScript 中不支持的 Automation 类型
MicrosoftVBScript 运行时错误(0x800A01CE)-->远程服务器不存在或不可用
MicrosoftVBScript 运行时错误(0x800A01E1)-->无效图片
MicrosoftVBScript 运行时错误(0x800A01F4)-->变量未定义
MicrosoftVBScript 运行时错误(0x800A01F5)-->非*赋值
MicrosoftVBScript 运行时错误(0x800A01F6)-->对象不能安全地使用 Script 编程
MicrosoftVBScript 运行时错误(0x800A01F7)-->对象不能安全初始化
MicrosoftVBScript 运行时错误(0x800A01F8)-->对象不能安全创建
MicrosoftVBScript 运行时错误(0x800A01F9)-->无效的或无资格的引用
MicrosoftVBScript 运行时错误(0x800A01FA)-->类没有被定义
MicrosoftVBScript 运行时错误(0x800A01FB)-->出现一个意外错误
MicrosoftVBScript 运行时错误(0x800A1398)-->缺少常规表达式对象
MicrosoftVBScript 运行时错误(0x800A1399)-->常规表达式语*错误
MicrosoftVBScript 运行时错误(0x800A139A)-->错误的数量词
MicrosoftVBScript 运行时错误(0x800A139B)-->常规表达式中缺少 ']'
MicrosoftVBScript 运行时错误(0x800A139C)-->常规表达式中缺少 ')'
MicrosoftVBScript 运行时错误(0x800A139D)-->字符集越界
MicrosoftVBScript 运行时错误(0x800A802B)-->未找到元素 
ActiveServerPages,ASP0126(0x80004005)-->找不到包含文件
MicrosoftOLEDBProviderforODBCDrivers(0x80040E14)-->sql语句出错(字段名错误,或数据类型不匹配)
MicrosoftOLEDBProviderforODBCDrivers(0x80040E07)-->sql语句出错(要插入或更新的字段的类型与变量数据类型不匹配)
MicrosoftOLEDBProviderforODBCDrivers(0x80040E57)-->sql语句出错(要插入或更新的数据溢出)
MicrosoftOLEDBProviderforODBCDrivers(0x80040E10)-->sql语句出错(update字段名或要更新的数据类型错误)
MicrosoftOLEDBProviderforODBCDrivers(0x80004005)-->sql语句出错(要插入或更新的字段的数值不能为空值)
MicrosoftOLEDBProviderforODBCDrivers(0x80004005)-->打开数据库出错,没有在指定目录发现数据库
MicrosoftOLEDBProviderforODBCDrivers(0x80040E37)-->没有发现表
ODBCDrivers(0x80040E21)-->sql语句出错(数据类型不匹配或表/字段错误或处于编辑状态,或不存在于conn打开的数据库中)
ADODB.Recordset(0x800A0BB9)-->sql语句出错(sql语句或conn语句未定义或对一个rs属性进行赋值时发生错误)
ADODB.Recordset(0x800A0CC1)-->rs对像出错(rs对像本身不存在或错误地引用了一个不存在的字段名)
ADODB.Recordset(0x800A0BCD)-->rs对像出错(记录集中没有记录却对记录集进行操作)
ADODB.Recordset(0x800A0E78)-->rs对像出错(记录集不存在,缺少rs.open语句)
ADODB.Recordset(0x800A0CC1)-->rs对像出错(引用了一个不存在的字段名)
ADODB.Recordset(0x800A0E7D)-->conn定义错误
ADODB.Recordset(0x800A0CB3)-->数据库以只读方式打开,无*更新数据 
ADODB.Recordset(0x800A000D)-->错误引用rs变量(rs对像已关闭或未定义)

写ASP采集的一些函数

<%

'==================================================
'函数名:GetHttpPage
'作 用:获取网页源码
'参 数:HttpUrl ------网页地址
'==================================================
Function GetHttpPage(HttpUrl)
If IsNull(HttpUrl)=True Or Len(HttpUrl)<18 Or HttpUrl="$False$" Then
GetHttpPage="$False$"
Exit Function
End If
Dim Http
Set Http=server.createobject("MSXML2.XMLHTTP")
Http.open "GET",HttpUrl,False
Http.Send()
If Http.Readystate<>4 then
Set Http=Nothing 
GetHttpPage="$False$"
Exit function
End if
GetHTTPPage=bytesToBSTR(Http.responseBody,"GB2312")
Set Http=Nothing
If Err.number<>0 then
Err.Clear
End If
End Function

'==================================================
'函数名:BytesToBstr
'作 用:将获取的源码转换为中文
'参 数:Body ------要转换的变量
'参 数:Cset ------要转换的类型
'==================================================
Function BytesToBstr(Body,Cset)
Dim Objstream
Set Objstream = Server.CreateObject("adodb.stream")
objstream.Type = 1
objstream.Mode =3
objstream.Open
objstream.Write body
objstream.Position = 0
objstream.Type = 2
objstream.Charset = Cset
BytesToBstr = objstream.ReadText 
objstream.Close
set objstream = nothing
End Function

'==================================================
'函数名:PostHttpPage
'作 用:登录
'==================================================
Function PostHttpPage(RefererUrl,PostUrl,PostData) 
Dim xmlHttp 
Dim RetStr 
Set xmlHttp = CreateObject("Msxml2.XMLHTTP") 
xmlHttp.Open "POST", PostUrl, False
XmlHTTP.setRequestHeader "Content-Length",Len(PostData) 
xmlHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
xmlHttp.setRequestHeader "Referer", RefererUrl
xmlHttp.Send PostData 
If Err.Number <> 0 Then 
Set xmlHttp=Nothing
PostHttpPage = "$False$"
Exit Function
End If
PostHttpPage=bytesToBSTR(xmlHttp.responseBody,"GB2312")
Set xmlHttp = nothing
End Function 

'==================================================
'函数名:UrlEncoding
'作 用:转换编码
'==================================================
Function UrlEncoding(DataStr)
Dim StrReturn,Si,ThisChr,InnerCode,Hight8,Low8
StrReturn = ""
For Si = 1 To Len(DataStr)
ThisChr = Mid(DataStr,Si,1)
If Abs(Asc(ThisChr)) < &HFF Then
StrReturn = StrReturn & ThisChr
Else
InnerCode = Asc(ThisChr)
If InnerCode < 0 Then
InnerCode = InnerCode + &H10000
End If
Hight8 = (InnerCode And &HFF00)\ &HFF
Low8 = InnerCode And &HFF
StrReturn = StrReturn & "%" & Hex(Hight8) & "%" & Hex(Low8)
End If
Next
UrlEncoding = StrReturn
End Function

'==================================================
'函数名:GetBody
'作 用:截取字符串
'参 数:ConStr ------将要截取的字符串
'参 数:StartStr ------开始字符串
'参 数:OverStr ------结束字符串
'参 数:IncluL ------是否包含StartStr
'参 数:IncluR ------是否包含OverStr
'==================================================
Function GetBody(ConStr,StartStr,OverStr,IncluL,IncluR)
If ConStr="$False$" or ConStr="" or IsNull(ConStr)=True Or StartStr="" or IsNull(StartStr)=True Or OverStr="" or IsNull(OverStr)=True Then
GetBody="$False$"
Exit Function
End If
Dim ConStrTemp
Dim Start,Over
ConStrTemp=Lcase(ConStr)
StartStr=Lcase(StartStr)
OverStr=Lcase(OverStr)
Start = InStrB(1, ConStrTemp, StartStr, vbBinaryCompare)
If Start<=0 then
GetBody="$False$"
Exit Function
Else
If IncluL=False Then
Start=Start+LenB(StartStr)
End If
End If
Over=InStrB(Start,ConStrTemp,OverStr,vbBinaryCompare)
If Over<=0 Or Over<=Start then
GetBody="$False$"
Exit Function
Else
If IncluR=True Then
Over=Over+LenB(OverStr)
End If
End If
GetBody=MidB(ConStr,Start,Over-Start)
End Function

%>

天气小偷范本

<%
On Error Resume Next
Server.ScriptTimeOut=9999999
Function getHTTPPage(Path)
t = GetBody(Path)
getHTTPPage=BytesToBstr(t,"GB2312")
End function

Function GetBody(url) 
on error resume next
Set Retrieval = CreateObject("Microsoft.XMLHTTP") 
With Retrieval 
.Open "Get", url, False, "", "" 
.Send 
GetBody = .ResponseBody
End With 
Set Retrieval = Nothing 
End Function

Function BytesToBstr(body,Cset)
dim objstream
set objstream = Server.CreateObject("adodb.stream")
objstream.Type = 1
objstream.Mode =3
objstream.Open
objstream.Write body
objstream.Position = 0
objstream.Type = 2
objstream.Charset = Cset
BytesToBstr = objstream.ReadText 
objstream.Close
set objstream = nothing
End Function
Function Newstring(wstr,strng)
Newstring=Instr(lcase(wstr),lcase(strng))
if Newstring<=0 then Newstring=Len(wstr)
End Function
%>

<%
Dim wstr,str,url,start,over,city
city = Request.QueryString("id")
url="http://appnews.qq.com/cgi-bin/news_qq_search?city="&city&""
wstr=getHTTPPage(url)
start=Newstring(wstr,"<html>")
over=Newstring(wstr,"</HTML>")
body=mid(wstr,start,over-start)

body = replace(body,"skin1","天气预报 - 斯克网络")
body = replace(body,"http://appnews.qq.com/cgi-bin/news_qq_search?city","tianqi.asp?id")


response.write body
%>

本文地址:/103/
  • 相关文章
  • 推荐文章
  • 最新文章
发表评论





您的IP:44.211.84.185,来自:

留言

 


免费咨询
建站咨询热线
15967985565

扫一扫微信咨询
QQ: 358758308 Skype: yuzhiguo Facebook: yuzhiguo Email