足球游戏_中国足彩网¥体育资讯$

错误号:3704 错误描述:对象关闭时不允许操作
来源:易贤网 阅读:1338 次 日期:2015-08-13 15:32:14
温馨提示:易贤网小编为您整理了“错误号:3704 错误描述:对象关闭时不允许操作”,方便广大网友查阅!

“错误号:3704 错误描述:对象关闭时,不允许操作。sql=select top 10 contentid,a.sortid,a.groupid,a.exc.......”

inc/aspcms_mainclass.asp文件,大约900行,原来代码为:

代码如下:

if str=content or str=news or str=product or str=down or str=pic then

sperstrs =conn.exec(select speccategory+'_'+specfield from {prefix}specset order by specorder asc,specid, arr)

if isarray(sperstrs) then

for each spec in sperstrs

sperstr = sperstr&,&spec

next

end if

我们修改为:

代码如下:

if str=content or str=news or str=product or str=down or str=pic then

sperstrs =conn.exec(select speccategory+'_'+specfield from {prefix}specset order by specorder asc,specid, arr)

if isarray(sperstrs) then

sperstr=

for each spec in sperstrs

sperstr = sperstr&,&spec

next

end if

因为程序在同一个页面循环{aspcms:content}标签时,原来的代码在后面再调用该标签时会不断累加 sperstr值,造成该标签数量越多,后面的sql查询字段,而access数据库,单表最多255个字段,sql查询里面一次查询也最多不超过255个字段,当累加的字段数超过255个时,运行程序就会出错。此时,会引起inc/aspcms_mainclass.asp文件,大约152行的程序代码,内容是:

代码如下:

if not debugmode then

if err then

errid=err.number:errdes=err.description:err.clear:dbconn.close:set dbconn=nothing:isconnect=false

echoerr err_03,errid,errdes&sql=&sqlstr

end if

end if

如果有错误,程序代码会关闭数据。于是就出现了前文的错误 。

中国足彩网信息请查看IT技术专栏

中国足彩网信息请查看CMS教程
由于各方面情况的不断调整与变化,易贤网提供的所有考试信息和咨询回复仅供参考,敬请考生以权威部门公布的正式信息和咨询为准!
关于我们 | 联系我们 | 人才招聘 | 网站声明 | 网站帮助 | 非正式的简要咨询 | 简要咨询须知 | 加入群交流 | 手机站点 | 投诉建议
工业和信息化部备案号:滇ICP备2023014141号-1 足球游戏_中国足彩网¥体育资讯$ 滇公网安备53010202001879号 人力资源服务许可证:(云)人服证字(2023)第0102001523号
云南网警备案专用图标
联系电话:0871-65317125(9:00—18:00) 获取招聘考试信息及咨询关注公众号:hfpxwx
咨询QQ:526150442(9:00—18:00)版权所有:易贤网
云南网警报警专用图标