回 帖 发 新 帖 刷新版面

主题:帮大家找的ASP常用错误类型

ActiveServerPages,ASP0126(0x80004005)-->找不到包含文件

MicrosoftOLEDBProviderforODBCDrivers(0x80040E21)-->sql语句出错(数据类型不匹配或表名(字段名)错误或表处于编辑状态,或表不存在于conn打开的数据库中)
MicrosoftOLEDBProviderforODBCDrivers(0x80040E14)-->sql语句出错(字段名错误,或数据类型不匹配)
MicrosoftOLEDBProviderforODBCDrivers(0x80040E07)-->sql语句出错(要插入或更新的字段的类型与变量数据类型不匹配)
MicrosoftOLEDBProviderforODBCDrivers(0x80040E57)-->sql语句出错(要插入或更新的数据溢出)
MicrosoftOLEDBProviderforODBCDrivers(0x80040E10)-->sql语句出错(update字段名或要更新的数据类型错误)
MicrosoftOLEDBProviderforODBCDrivers(0x80004005)-->sql语句出错(要插入或更新的字段的数值不能为空值)
MicrosoftOLEDBProviderforODBCDrivers(0x80004005) -->打开数据库出错,没有在指定目录发现数据库
MicrosoftOLEDBProviderforODBCDrivers(0x80040E37)-->没有发现表

MicrosoftVBscript运行时错误(0x800A000D)-->错误引用rs变量(rs对像已关闭或未定义)
MicrosoftVBscript运行时错误(0x800A01C2)-->vbscript脚本错误(vbscript语句出错)
MicrosoftVBscript运行时错误(0x800A0006)-->vbscript脚本错误(溢出错误)
MicrosoftVBscript编译器错误(0x800A040E)-->缺少loop
MicrosoftVBscript编译器错误(0x800A03EA)-->缺少if或endif
MicrosoftVBscript编译器错误(0x800A03EE)--> 语句未结束(缺少")")
MicrosoftVBscript编译器错误(0x800A03F6)-->if语句出错(缺少endif)
MicrosoftVBscript运行时错误(0x800A005B)-->缺少set
MicrosoftVBscript运行时错误(0x800A0005)-->变量未定义
MicrosoftVBscript编译器错误(0x800A03F9)-->if语句缺少then
MicrosoftVBscript编译器错误(0x800A0411)-->dim语句定义错误


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)-->数据库以只读方式打开,无法更新数据

回复列表 (共86个回复)

81 楼

请帮忙指点一下,放在过程中的代码不能执行


<% @LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
set conn=server.CreateObject("adodb.connection")
MyDbPath = ""
Db=MyDbPath & "data/ktdata.mdb"
ConnStr = "Provider = Microsoft.Jet.OLEDB.4.0;Data Source = " & Server.MapPath(db)
Conn.open ConnStr
set rs=conn.execute("select * from xz where id=1",recordsaffected,adcmdtext)
pxz=rs("xz").value
set conn=nothing
set rs=nothing
%>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script language="vbscript">
<!--
sub button3_onclick
  set conn=server.CreateObject("adodb.connection")
  MyDbPath = ""
  Db=MyDbPath & "data/ktdata.mdb"
  ConnStr = "Provider = Microsoft.Jet.OLEDB.4.0;Data Source = " & Server.MapPath(db)
  Conn.open ConnStr
  set rs=conn.execute("select * from xz where id=1",recordsaffected,adcmdtext)
  pxz=rs("xz").value
  pxz=pxz+1
  set rs=conn.execute("update xz set xz='"&pxz&"' where id=1",recordsaffected,adcmdtext)
  set conn=nothing
end sub
-->
</script>
</head>
<body>
<p>姓名:<input id=xm name=xm value="<%=pxz%>"></p><br>
<input type="button" name="button3" value="加一">
</body>
</html>

82 楼

还有个错误请大家帮忙解决一下,非常感谢啊!
就是我想做一个简单的登陆系统用ASP做的,代码是:
<% dim t1,t2
t1=request.form("username")
t2=request.form("password")
%>
<% 
db = "login.mdb" 
ConnStr = "Provider = Microsoft.Jet.OLEDB.4.0;Data Source = " & Server.MapPath(db) 
Set conn = Server.CreateObject("ADODB.Connection") 
conn.open ConnStr 

%> 
<% 
    set rs=server.createobject("adodb.recordset") 
    str="select * from information where l_username=t1 and l_passowrd=t2"
    rs.open str,conn,1,1
    if rs.recordcount>0 then   
    session("loginname")=t1
    respose.redirect"show.asp"
     else 
    response.write"no this person,please login first"
    end if
    rs.close
%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>check.asp</title>
</head>

<body>

</body>

</html>
它提示的错误类型:
Microsoft JET Database Engine (0x80040E10)
至少一个参数没有被指定值。
/check.asp, 第 15 行
我是用ACCESS做数据库的,其中对应的选项是id,l_username,l_password,l_repassword,l_email,l_QQ.我现在要登陆,用一个已经在数据库里有的username和password登陆时就提示那个错误,小弟十分感谢啊!!!

83 楼

错误类型:
Microsoft VBScript 运行时错误 (0x800A0035)
文件未找到
/web0921/1/admin/del_news.asp, 第 51 行
 
fdel.DeleteFile(tempImageDir)
应该怎么改?

84 楼

安达腾龙 是你的IIS坏啦~

85 楼

错误类型:
Microsoft OLE DB Provider for SQL Server (0x80040E21)
多步 OLE DB 操作产生错误。如果可能,请检查每个 OLE DB 状态值。没有工作被完成。
/Addnews.asp, 第 15 行


希望大家能帮忙解决一下...这个是第15行rs("y_cn_id")=Request("y_cn_id")

如果在Request("y_cn_id")前面加一个int的话就直接变成0写入SQL数据库了...

y_cn_id这个字段在二个表中都是int类型的!

谢谢



<!--#include file="conn.asp"-->
<%
 if request.QueryString("action")="save" then
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from Y_News_Content",conn,1,3
rs.addnew
rs("y_nco_editor")=trim(request("y_nco_editor"))
rs("y_nco_title")=trim(request("y_nco_title"))
rs("y_nco_keyword")=request("y_nco_keyword")
rs("y_nco_source")=request("y_nco_source")
rs("y_cn_id")=Request("y_cn_id")
y_nco_content=Request.Form("y_nco_content")
rs("y_nco_content")=y_nco_content
session("y_nco_content")=y_nco_content
rs("y_nco_content")=Request.Form("y_nco_content")
rs("y_nco_time")=now()
rs("y_nco_num")=0
response.write rs("y_cn_id")
rs.update
rs.close
set rs=nothing
session("y_nco_content")=""

response.write "<script language=javascript>alert('添加成功!');window.location.href='addnews.asp';</script>"
response.End
end if
%>
     <%
            set rsNews=Server.CreateObject("ADODB.Recordset")
            rsNews.open "Select * From y_news_class",conn,3,1
            %> <select name="y_nc_id">
          <%
            While not rsNews.EOF
                response.write "<option value=" &rsNews("y_nc_id") & ">" & rsNews("y_nc_name") & "</option>"
                rsNews.movenext
            WEND
            %>
        </select> 

86 楼

我也见过这样的问题~!~~~~~~~~~~~~~~~~~~~~~~~~~



[url=http://www.2qqface.com.cn/]http://www.2qqface.com.cn/[/url] 
[url=http://www.mzit.com/]http://www.mzit.com/[/url]
[url=http://www.yidu35.com/]http://www.yidu35.com/[/url]
[url=http://www.yidu35.cn/]http://www.yidu35.cn/[/url]
[url=http://www.yidu35.net/]http://www.yidu35.net/[/url]
[url=http://www.yahucn.com/]http://www.yahucn.com/[/url]
[url=http://www.xtc2c.com/]http://www.xtc2c.com/[/url]
[url=http://www.kc35.com.cn/]http://www.kc35.com.cn/[/url]

我来回复

您尚未登录,请登录后再回复。点此登录或注册