asp 中的 “80020009” 错误

CSDN 文档中心发表文章的时候,大的,用Word转过来的文章经常会报以下错误:

 错误 '80020009'
发生意外。

/Develop/add_sql.asp,行25

而第25行的代码只是:

m_Develop_content = Trim(Request.Form("content"))

这里只是接受数据。应该不是代码的问题。在CSDN搜索了相关帖子,这样的错误也不少,基本上都没有答案,在看到一个帖子的时候,发现有个人说,这是因为iis默认设置中最大只能接受200K的内容。是这里造成的原因。

http://expert.csdn.net/Expert/topic/2100/2100898.xml

 yibotiemen(易通)  

IIS6 可以做以下调整。

先在服务里关闭iis admin service服务
找到windows\system32\inesrv\下的metabase.xml,
打开,找到ASPMaxRequestEntityAllowed 把他修改为需要的值,默认为204800,即200K
然后重启iis admin service服务

把它修改为51200000(50M)

IIS5.0/4.0 在注册表内 -

Description of the MaxClientRequestBuffer Registry Value
http://support.microsoft.com/?id=260694

Default Sizes in IIS 4 and 5

In IIS 4.0, the default maximum size of request line and header fields is 2 megabytes (MB).

In IIS 5.0, this is reduced to 128 kilobytes (KB).
In IIS 5.0 with Windows 2000 Service Pack 4 installed, this is reduced to 16 KB.

 

另外,在搜索微软的知识库的时候,发现在数据类型是text BLOB 的读取处理的时候,也有80020009错误

 

http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q175/2/39.asp&NoWebContent=1

When dealing with BLOB fields from Microsoft SQL Server, you must put them to the right of non-BLOB columns in the resultset. To be safe, you should also read the columns in left-to-right order, so if you have two BLOB columns as the last two columns in your resultset, read the first one and then the second. Do not read them in the reverse order.

数据读取的先后顺序,竟然也会出现这个问题。

 

另外

http://www.elearning4gurus.com/only4gurus/techlib/miscellaneous/CurrentFAQ-20021215.pdf

这里是 ASPFAQ 3.0 ,这里有很多ASP3.0稀奇古怪错误的介绍。

 

  Friday, December 26, 2003 4:31 PM

 

反馈

# 回复: asp 中的 “80020009” 错误 12/26/2003 7:12 PM zhengyun_ustc
我们以前遇到过这种情况,Request.Form提交的数据太多了,导致IIS报告异常“堆栈溢出. 处理中的数据超过允许的极限”。

另外,我觉得修改IIS默认接收数据大小的做法是不妥的,或者不是安全的。

# 回复: asp 中的 “80020009” 错误 1/11/2004 1:57 AM alexliyu
我也经常遇到这样的错误,但是经常来说都是由于eof造成的。
http协议造成的倒没有遇到过~~
呵呵,能做一个连接么?

# 回复: asp 中的 “80020009” 错误 1/12/2004 8:16 AM ghj1976
ok 已经增加链接

# 回复: asp 中的 “80020009” 错误 2/16/2004 11:02 PM a
a

# 回复: asp 中的 “80020009” 错误的一个小问题 2/16/2004 11:04 PM bruceking
我的数据库是acess,再用ASP添加纪录的时候,如果两个纪录是相同的也会出现这种情况,修改后,就没有了

# 回复: asp 中的 “80020009” 错误 6/21/2004 10:54 AM sdream
有的时候,如果您的记录急为空,也回出现这种错误!

# re: asp 中的 “80020009” 错误 8/4/2004 10:44 AM liyyg
如果是IIS 4 或 5,怎么修改呀?
我EMAIL:liyyg@digitalchina.com

谢谢哈

# re: asp 中的 “80020009” 错误 8/10/2004 11:23 AM dannis
我也遇见这个错误,但是所报的不是这类问题
错误 '80020009'
发生意外。

/vip/admin/listuser.asp,行107
而第107行的代码只是:
<font color=#FF0000><%=trim(rs("CUST_ID"))%></font>
这是什么问题????


# re: asp 中的 “80020009” 错误 10/14/2004 1:15 PM liyi
我的网站也出了类似的错误,可能数据过多

# re: asp 中的 “80020009” 错误,帮我! 11/6/2004 11:40 AM 唐伯虎
错误类型:
Server 对象, ASP 0177 (0x800401F3)
无效的类别字符串
/pnet/upload.asp, 第 131 行


浏览器类型:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)

网页:
POST 137902 ??? /pnet/upload.asp

POST Data:
错误 '80020009'
发生意外。



# re: asp 中的 “80020009” 错误 12/10/2004 2:31 PM wiran
有记录集为空时出现这个错误,另外有与dannis 相同的情况,在正确的记录集读<%=trim(rs("CUST_ID"))%>出错,就不知道怎么回事了。
posted @ 2004-12-17 11:13  观我生,君子无咎  阅读(12143)  评论(1)    收藏  举报