asp程序出错

robertlu 2004-12-22 09:55:46
有一asp程序在windows2003运行出现如下的错误,但前段时间运行是正常的,重安装系统后才出错,并且在所有装有windows2003电脑运行都出现同样的错误.请各位高手帮忙,先谢!

错误显示如下:

Response 对象 错误 'ASP 0251 : 80004005'

超过响应缓冲区限制

/web/eletricity/admin/eletricity.asp,行 0

此 ASP 页的执行造成响应缓冲区超过其配置限制。
...全文
120 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
robertlu 2004-12-22
  • 打赏
  • 举报
回复
部分程序如下,以前一直运行都正常:
<% if session("login")="" then Response.Redirect("login.asp") %>

<!-- #include file="../include/connection.inc" -->
<%
dim vYear,vMonth,vName,vBuilding ,vCell,vHouse, selYear,selMonth,txtName,selBuilding,selCell,txtHouse ,vPayCode

selYear=trim(Request.Form("selYear"))
if selYear="" then selYear=request("selYear")
if selYear="" then selYear=year(date())
vYear=" and WE_Year= '"& selYear &"'"


selMonth=trim(Request.Form("selMonth"))
if selMonth="" then selMonth=request("selMonth")
if selMonth="" then
vMonth=""
else
vMonth=" and WE_Month= '"& selMonth &"'"
end if

txtName=trim(Request.Form("txtName"))
'if txtName="" then txtName=request("txtName")
if txtName="" then
vName=""
else
vName=" and WE_Name like '"& txtName &"%'"
end if

selBuilding=trim(Request.Form("selBuilding"))
if selBuilding="" then selBuilding=request("selBuilding")
if selBuilding="所有" or selBuilding="" then
vBuilding=""
else
vBuilding=" and WE_buildingID= '"& selBuilding &"'"
end if

selCell=trim(Request.Form("selCell"))
'if selCell="" then selCell=request("selCell")
if selCell="所有" or selCell="" then
vCell=""
else
vCell=" and WE_cell= '"& selCell &"'"
end if


txtHouse=trim(Request.Form("txtHouse"))
'if txtHouse="" then txtHouse=request("txtHouse")
if txtHouse="" then
vHouse=""
else
vHouse=" and WE_House like '"& txtHouse &"%'"
end if

txtPayCode=trim(Request.Form("txtPayCode"))
'if txtPayCode="" then txtPayCode=request("txtPayCode")
if txtPayCode="0" then
vPayCode=" and WE_PayCode=''"
else
vPayCode=" and WE_PayCode like '"& txtPayCode &"%'"
end if

%>
<%
dim strSQL
dim rs,i
i=0
strSQL="select we_id,WE_PayCode,WE_name,WE_buildingID,WE_house,we_year,we_month,we_e_preNum,we_e_nowNum,we_e_nowNum-we_e_preNum as we_e_degree,WE_e_unitprice,(we_e_nowNum-we_e_preNum)*we_e_unitprice as we_e_money," &_
" WE_w_preNum,WE_w_nowNum,WE_w_nowNum-WE_w_preNum as we_w_degree,WE_w_unitprice,(WE_w_nowNum-WE_w_preNum)*we_w_unitprice as we_w_money,(we_e_nowNum-we_e_preNum)*we_e_unitprice+(WE_w_nowNum-WE_w_preNum)*we_w_unitprice as we_sum,"&_
"WE_deptID,WE_remark from T_Logistics_water_eletricity where WE_userType='1'" & vYear & vMonth & vName & vBuilding & vCell & vHouse & vPayCode & " order by WE_Year,WE_Month,WE_buildingID,WE_house"
set rs=cn.execute(strSQL)
while not rs.EOF
i=i+1
%>
beliefljh 2004-12-22
  • 打赏
  • 举报
回复
把具体程序给看一下,可以是程序那种有问题,导至缓冲太大,超过设置值
yb2008 2004-12-22
  • 打赏
  • 举报
回复
要么把缓冲设大点
patchclass 2004-12-22
  • 打赏
  • 举报
回复
大概IIS的配置弄错了,不清楚你的具体情况
TSD 2004-12-22
  • 打赏
  • 举报
回复
看看IIS的设置吧,2003可能所点不同
若白师妹 2004-12-22
  • 打赏
  • 举报
回复
不要设置缓冲
若白师妹 2004-12-22
  • 打赏
  • 举报
回复
代码
tt007 2004-12-22
  • 打赏
  • 举报
回复
具体……
iis6.0完整安装包xp+iis 6.0 完整安装包 xp sp3 IIS 6.0 中的一个最重要的变动涉及 Web 服务器安全性。为了更好地预防恶意用户和攻击者的攻击,在默认情况下,没有将 IIS 安装在 Microsoft Windows Server 2003 家族的成员上。 要点 为了更好地预防恶意用户和攻击者的攻击,没有将 IIS 默认安装到 Microsoft® Windows® Server 2003 家族的成员上。而且,当您最初安装 IIS 时,该服务在高度安全和“锁定”的模式下安装。在默认情况下,IIS 只为静态内容提供服务 - 即,ASPASP.NET、服务器端包含、WebDAV 发布和 FrontPage® Server Extensions 等功能只有在启用时才工作。如果安装 IIS 之后未启用该功能,则 IIS 返回一个 404 错误。您可以为动态内容提供服务,并通过 IIS 管理器中的 Web 服务扩展节点启用这些功能。同样,如果应用程序扩展未在 IIS 中进行映射,则 IIS 返回一个 404 错误。要映射扩展,请参阅设置应用程序映射。有关如何排解 404 错误(包括 404.2 和 404.3)、与 IIS 6.0 的新安装相关的问题或从低版本的 IIS 进行升级的详细信息,请参阅疑难解答。 iis6.0完整安装包xp 通过 Web 服务器证书向导和 CTL 向导,您可以同步 Web 和 NTFS 的安全设置、获得并安装服务器证书以及创建和修改证书信任列表。还可以选择一个加密服务提供程序 (CSP) 以使用证书加密数据。 详细信息,请参阅使用证书向导。

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧