当前位置:文档之家› ASP错误代码及原因一览表

ASP错误代码及原因一览表

MicrosoftVBScript(0x800A03EA)→语句格式错误(只有else,缺少If或EndIf)
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)→语句未结束(缺少EndIf或Endselect)
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)→属性的 s

et 或 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)→类型不匹配(如字符串型当数字或者其他类型使用)
[解决] 如需要数字的变量用来计算i=i+1等数学运算,那么应该在变量上使用cint(变量名),强制转换为数字型,两个变量之间作比较也一定要是相同的类型,因此也需要转换。
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:'Replace'
[解决] 无效使用函数的情况,比较多见,包括Split等。道理比较简单,就是因为你Replace的内容是空的,所以最好加一句IF检验一下你要replace的内容是否为空。
MicrosoftVBScript 运行时错误(0x800A0142)→不能创建所需的临时文件
MicrosoftVBScript 运行时错误(0x800A01A8)→缺少对象(很有可能是没有对rs对象进行定义)
[解决] 这样写setrs=server.CreateObject("adodb.recordset")可以定义对象,或直接用conn.execute("SQL")也方便得多,且不用考虑对象问题。
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)→错误的数量词
M

icrosoftVBScript 运行时错误(0x800A139B)→常规表达式中缺少 ']'
MicrosoftVBScript 运行时错误(0x800A139C)→常规表达式中缺少 ')'
MicrosoftVBScript 运行时错误(0x800A139D)→字符集越界
MicrosoftVBScript 运行时错误(0x800A802B)→未找到元素
MicrosoftOLEDBProviderforODBCDrivers(0x80040E14)→sql语句出错(字段名错误,或数据类型不匹配)
MicrosoftOLEDBProviderforODBCDrivers(0x80040E07)→sql语句出错(要插入或更新的字段的类型与变量数据类型不匹配)
[解决] 试一试把SQL中变量加了''的去掉单引号,或者把原先认为是数字的加上'',再查看效果。
MicrosoftOLEDBProviderforODBCDrivers(0x80040E57)→sql语句出错(要插入或更新的数据溢出)
MicrosoftOLEDBProviderforODBCDrivers(0x80040E10)→sql语句出错(update字段名或要更新的数据类型错误)
[解决] 检查每一个参数的值是否真的传递过来了,很可能有些参数是"",没有被赋值。
MicrosoftOLEDBProviderforODBCDrivers(0x80004005)→操作必须使用一个可更新的查询
[原因] 在XP服务器上非常常见,属于服务器的配置问题,或者说是用户的权限问题。
[解决] 如果仅仅是在本机上调试出现的错误,则右键点击网站所在的文件夹,点击“共享和安全…”,在“安全”中点“添加…”写入everyone,然后再使这个用户的权限为所有。
MicrosoftOLEDBProviderforODBCDrivers(0x80040E37)→没有发现表
[解决] 检查数据库表名或数据库连接
ODBCDrivers(0x80040E21)→sql语句出错(数据类型不匹配或表/字段错误或处于编辑状态,或不存在于conn打开的数据库中)
ADODB.Recordset(0x800A0BB9)→sql语句出错(sql语句或conn语句未定义或对一个rs属性进行赋值时发生错误)
ADODB.Recordset(0x800A0CC1)→rs对像出错(rs对像本身不存在或错误地引用了一个不存在的字段名)
[解决] 首先看数据库中是否有所需名称,也就是程序所要读取的字段名称;如果有,再看sql语句select中包含不包含要读取的字段名称。
ADODB.Recordset(0x800A0BCD)→rs对像出错(记录集中没有记录却对记录集进行操作)
[原因] BOF或EOF中有一个是“真”,或者当前的记录已被删除,所需的操作要求一个当前的记录,也就是在利用SQL查找数据库的记录时,查找结果为空,而且你没有对空记录的情况做出处理。
[解决] 如果你不相信查找结果为空,那你应该考虑你的SQL语句是否正确;如果确实有空的情况,那你应该添加ifrs.eofthen或者dowhilenotrs.eof之类的语句,对eof的情况进行处理。
ADODB.Recordset(0x800A0E78)→rs对像出错(记录集不存在,缺少rs.open语句)
ADODB.Recordset(0x800A0CC1)→rs对像出错(引

用了一个不存在的字段名)
ADODB.Recordset(0x800A0E7D)→conn定义错误
ADODB.Recordset(0x800A0CB3)→数据库以只读方式打开,无法更新数据

相关主题
文本预览
相关文档 最新文档