在ASP中包含新的包含文件时出错 [英] Error while including a new include file in ASP

查看:86
本文介绍了在ASP中包含新的包含文件时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理使用ASP的应用程序,当我想要包含新的asp包含文件时,得到以下错误。

__________________________________________________ ___________________

Microsoft VBScript运行时错误''800a0006''

溢出:''[编号:33994]''

__________________________________________________ __________________


我确信新的asp文件中没有错误,好像我删除了任何

现有的包含文件然后没有问题。


这是动态的包括目前我们正在加载大约800个包含文件。


ASP中包含文件数量限制是否有任何限制?


谢谢提前。


Sarath kumar

I am working with an application using ASP, getting below error when i am
trying to include new asp include file.
__________________________________________________ ___________________
Microsoft VBScript runtime error ''800a0006''
Overflow: ''[number: 33994]''
__________________________________________________ __________________

I am sure that there is no error in the new asp file as if i delete any
existing include file then no issues.

This is dynamic include and currently we are loading around 800 include files.

Is there any maximum limit for number of include files limitation in ASP?

Thanks in advance.

Sarath kumar

推荐答案

Sarath写道:
我正在使用ASP的应用程序,当我正在尝试时收到以下错误包含新的asp包含文件。
__________________________________________________ ___________________
Microsoft VBScript运行时错误''800a0006''
溢出:''[编号:33994]''
__________________________________________________ __________________
我确信新的asp文件中没有错误,好像我删除了任何现有的包含文件然后没有问题。

这是动态包含,目前我们是加载大约800
包含文件。

ASP中包含文件数限制有限制吗?
I am working with an application using ASP, getting below error when
i am trying to include new asp include file.
__________________________________________________ ___________________
Microsoft VBScript runtime error ''800a0006''
Overflow: ''[number: 33994]''
__________________________________________________ __________________

I am sure that there is no error in the new asp file as if i delete
any existing include file then no issues.

This is dynamic include and currently we are loading around 800
include files.

Is there any maximum limit for number of include files limitation in
ASP?



否,当你应该使用Long时,问题更可能是你的包含文件中使用

整数。仔细检查代码,尤其是
,其中发生任何乘法或加法,并使用CLng函数明确地将计算中涉及的

变量强制转换为Longs。


请记住,两个整数的加法或乘法的结果是

必须是一个整数(最大32678)。如果操作结果是
大于32678,则会出现溢出。例如:

dim x,y,z

x = 2

y = 16997

''这些是存储的默认情况下为整数

出错时接下来

response.write"没有CLng():< BR>"

z = x * y

if err<> 0

response.write err.description

err.clear

否则

response.write z

结束如果

response.write"< BR>使用CLng():< BR>" ;

z = clng(x)* clng(y)

如果错误<> 0则

response.write err.description

err.clear

else

response.write z

结束如果


为了保证vbscript为计算结果保留足够的空间,你需要在执行

操作之前将操作数转换为Longs。这迫使vbscript在内存中保留空间以获得Long

值而不是整数。


HTH,

Bob Barrows


-

Microsoft MVP - ASP / ASP.NET

请回复新闻组。这个电子邮件帐户是我的垃圾邮件陷阱所以我

不经常检查它。如果您必须离线回复,请删除

NO SPAM


No, the problem is more likely an attempt in your include file to use an
Integer when you should be using a Long. Go through the code, especially
where any multiplication or addition occurs, and explicitly cast the
variables involved in the calculations as Longs using the CLng function.

Remember, the result of the addition or multiplication of two Integers is
required to be an Integer (max 32678). If the result of the operation is
greater than 32678, you get an overflow. For example:
dim x, y, z
x=2
y=16997
''these are stored as Integer by default
on error resume next
response.write "Without CLng():<BR>"
z=x*y
if err<>0 then
response.write err.description
err.clear
else
response.write z
end if
response.write "<BR>Using CLng():<BR>"
z=clng(x) * clng(y)
if err<>0 then
response.write err.description
err.clear
else
response.write z
end if

In order to guarantee that vbscript reserves enough space for the result of
the calculation, you need to cast the operands as Longs before performing
the operation. This forces vbscript to reserve space in memory for a Long
value instead of an Integer.

HTH,
Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don''t check it very often. If you must reply off-line, then remove the
"NO SPAM"


" Sarath"在消息中写道

news:66 ********************************** @ microsof t.com ...

:我正在使用ASP处理一个应用程序,当我在

时尝试包含新的asp包含文件时出现以下错误。

:__________________________________________________ ___________________

:Microsoft VBScript运行时错误''800a0006''

:溢出:''[编号:33994]''

:__________________________________________________ __________________



:我确定新的asp文件中没有错误,好像我删除了任何

:现有包含文件然后没有问题。



:这是动态包含,目前我们正在加载大约800个包含

文件。



:ASP中包含文件数量限制是否有限制?


是否报告了行号?看看这是否有帮助:

http:/ /support.jodohost.com/showthread.php?t=1694

-

Roland Hall

/ *这些信息的分发是希望它有用,但

没有任何保证;甚至没有适销性的暗示保证

或特定用途的适用性。 * /

Technet脚本中心 - http:// www .microsoft.com / technet / scriptcenter /

WSH 5.6文档 - http://msdn.microsoft.com/downloads/list/webdev.asp

MSDN Library - http://msdn.microsoft.com/library/default.asp
"Sarath" wrote in message
news:66**********************************@microsof t.com...
:I am working with an application using ASP, getting below error when i am
: trying to include new asp include file.
: __________________________________________________ ___________________
: Microsoft VBScript runtime error ''800a0006''
: Overflow: ''[number: 33994]''
: __________________________________________________ __________________
:
: I am sure that there is no error in the new asp file as if i delete any
: existing include file then no issues.
:
: This is dynamic include and currently we are loading around 800 include
files.
:
: Is there any maximum limit for number of include files limitation in ASP?

Did it report a line number? See if this helps:

http://support.jodohost.com/showthread.php?t=1694

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp


感谢您的快速回复。

我确定新的asp文件中没有错误,好像我删除了

任何现有的包含文件然后没有问题。


更多的包含文件中没有算术运算。


谢谢,

Sarath


" Bob Barrows [MVP]"写道:
Thanks for quick response.
I am sure that there is no error in the new asp file as if i delete
any existing include file then no issues.

More over there are no arithmetic operations in the include files.

Thanks,
Sarath

"Bob Barrows [MVP]" wrote:
Sarath写道:
我正在使用ASP的应用程序,当我试图包含新的asp包含时出现以下错误文件。
__________________________________________________ ___________________
Microsoft VBScript运行时错误''800a0006''
溢出:''[编号:33994]''
__________________________________________________ __________________

我确信新的asp文件中没有错误,好像我删除任何现有的包含文件然后没有问题。

这是动态包含,目前我们正在加载大约800
包含文件。

ASP中包含文件数限制有限制吗?
I am working with an application using ASP, getting below error when
i am trying to include new asp include file.
__________________________________________________ ___________________
Microsoft VBScript runtime error ''800a0006''
Overflow: ''[number: 33994]''
__________________________________________________ __________________

I am sure that there is no error in the new asp file as if i delete
any existing include file then no issues.

This is dynamic include and currently we are loading around 800
include files.

Is there any maximum limit for number of include files limitation in
ASP?


不,问题更可能是你的尝试当你应该使用Long时,包含文件以使用
整数。浏览代码,尤其是发生任何乘法或加法的代码,并使用CLng函数将计算中涉及的变量显式转换为Longs。

请记住,结果两个整数的加法或乘法需要为整数(最大32678)。如果操作结果大于32678,则会出现溢出。例如:
dim x,y,z
x = 2
y = 16997
''这些默认存储为整数
错误恢复下一步
response.write"没有CLng():< BR>"
z = x * y
如果错误<> 0那么
response.write err.description 其他
响应。写完
response.write"< BR>使用CLng():< BR>"
z = clng(x)* clng(y)
如果err<> 0那么
response.write err.description
err.clear

response.write z
结束如果

为了保证vbscript为计算结果保留足够的空间,你需要在执行之前将操作数转换为Longs这个操作。这迫使vbscript在内存中保留空间而不是整数。

HTH,
Bob Barrows

- Microsoft MVP - ASP / ASP.NET
请回复新闻组。这个电子邮件帐户是我的垃圾邮件陷阱所以我不经常检查它。如果您必须离线回复,请删除
NO SPAM


No, the problem is more likely an attempt in your include file to use an
Integer when you should be using a Long. Go through the code, especially
where any multiplication or addition occurs, and explicitly cast the
variables involved in the calculations as Longs using the CLng function.

Remember, the result of the addition or multiplication of two Integers is
required to be an Integer (max 32678). If the result of the operation is
greater than 32678, you get an overflow. For example:
dim x, y, z
x=2
y=16997
''these are stored as Integer by default
on error resume next
response.write "Without CLng():<BR>"
z=x*y
if err<>0 then
response.write err.description
err.clear
else
response.write z
end if
response.write "<BR>Using CLng():<BR>"
z=clng(x) * clng(y)
if err<>0 then
response.write err.description
err.clear
else
response.write z
end if

In order to guarantee that vbscript reserves enough space for the result of
the calculation, you need to cast the operands as Longs before performing
the operation. This forces vbscript to reserve space in memory for a Long
value instead of an Integer.

HTH,
Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don''t check it very often. If you must reply off-line, then remove the
"NO SPAM"



这篇关于在ASP中包含新的包含文件时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆