IIS不显示ASP错误 [英] IIS not display ASP errors
问题描述
IIS已退出显示找到的ASP错误。 SQL Server中的错误显示为找不到页面。错误,但VBScript语法错误不是。例如,以下代码应该给出错误:x尚未声明,但页面只是在显示here后停止处理。
<%
响应。写(这里)
x
%>
谢谢!
2004年8月3日星期二06:03:02 -0700,austinJim
< au ******* @ discussion.microsoft.com>写道:
IIS已退出显示它找到的ASP错误。 SQL Server中的错误显示为找不到页面。错误,但VBScript语法错误不是。例如,以下代码应该给出错误:x尚未声明,但页面在显示here后停止处理。
<%
response.write(" here")
x
%>
谢谢!
如果不使用Option Explicit,那么ASP并不在乎你是不是没有DIM
a变量。尝试:
<%@ LANGUAGE =" VBSCRIPT" %>
<%Option明确%>
<%
response.write(" here")
x
%>
请参阅:
http://www.4guysfromrolla.com/webtec...ate/faq6.shtml
Jeff
>如果你没有使用Option Explicit,那么ASP并不在乎你是不是DIM一个变量。尝试:
<%@ LANGUAGE =" VBSCRIPT" %>
<%Option明确%>
<%
response.write(" here")
x
%>
我不明白为什么这就是声明一个变量。我希望
VBScript能够找到一个函数或子函数,
<%
x
%>
Microsoft VBScript运行时错误''800a000d''
类型不匹配:''x''
/x.asp,第2行
-
http:/ /www.aspfaq.com/
(反向回复地址。)
2004年8月3日星期二10:17 :41 -0400,Aaron [SQL Server MVP]
< te ***** @ dnartreb.noraa>写道:
如果不使用Option Explicit,那么ASP并不关心你是不是一个变量。尝试:
<%@ LANGUAGE =" VBSCRIPT" %>
<%Option明确%>
<%
response.write(" here")
x
%>
我不明白为什么这就是声明一个变量。我希望
VBScript能够找到一个函数或子函数,
<%
x
%>
微软VBScript运行时错误''800a000d''
类型不匹配:''x''
/ x.asp,第2行
可能更准确,只有现在它真的*应该*显示错误。
对于原始海报:这是您的代码的直接粘贴吗?并且
你在浏览器窗口中看不到任何错误?
Jeff
IIS has quit displaying ASP errors it finds. Errors from SQL Server are displayed as are "page not found" errors but VBScript syntax errors are not. For example, the following code should give the error that x has not been declared but the page just stops processing after displaying "here".
<%
response.write("here")
x
%>
Thanks!
On Tue, 3 Aug 2004 06:03:02 -0700, austinJim
<au*******@discussions.microsoft.com> wrote:
IIS has quit displaying ASP errors it finds. Errors from SQL Server are displayed as are "page not found" errors but VBScript syntax errors are not. For example, the following code should give the error that x has not been declared but the page just stops processing after displaying "here".
<%
response.write("here")
x
%>
Thanks!
Without using Option Explicit then ASP doesn''t care if you didn''t DIM
a variable. Try:
<%@ LANGUAGE="VBSCRIPT" %>
<% Option Explicit %>
<%
response.write("here")
x
%>
And see:
http://www.4guysfromrolla.com/webtec...ate/faq6.shtml
Jeff
> Without using Option Explicit then ASP doesn''t care if you didn''t DIMa variable. Try:
<%@ LANGUAGE="VBSCRIPT" %>
<% Option Explicit %>
<%
response.write("here")
x
%>
I don''t see why this is anything about declaring a variable. I would expect
VBScript to look for a function or sub,
<%
x
%>
Microsoft VBScript runtime error ''800a000d''
Type mismatch: ''x''
/x.asp, line 2
--
http://www.aspfaq.com/
(Reverse address to reply.)
On Tue, 3 Aug 2004 10:17:41 -0400, "Aaron [SQL Server MVP]"
<te*****@dnartreb.noraa> wrote:
Without using Option Explicit then ASP doesn''t care if you didn''t DIM
a variable. Try:
<%@ LANGUAGE="VBSCRIPT" %>
<% Option Explicit %>
<%
response.write("here")
x
%>
I don''t see why this is anything about declaring a variable. I would expect
VBScript to look for a function or sub,
<%
x
%>
Microsoft VBScript runtime error ''800a000d''
Type mismatch: ''x''
/x.asp, line 2
Probably more accurate, only now it really *should* display an error.
For the original poster: Is this a direct paste of your code? And
you don''t see any error in the browser window?
Jeff
这篇关于IIS不显示ASP错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!