IIS 7 - 设置调试选项时未显示错误消息 [英] IIS 7 - Error Messages Not Displayed tho Debugging Options set in

查看:80
本文介绍了IIS 7 - 设置调试选项时未显示错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

IIS没有显示运行时错误 - 各种调试选项

(启用服务器端调试,向浏览器发送错误)已设置为true

in IIS控制台。


没有错误被发送到浏览器并且脚本在错误时停止运行。


例如,使用选项显式错误 - 即非

尺寸变量在代码中使用Option Explicit set引用。


<%@ Language = VBScript%>

<%Option Explicit%>

<%

Dim testMe

testMe =" Hello World!" ;

Response.Write" testMy:" &安培; testMy

Response.End

%>


有任何意见吗?

解决方案

re:

!> IIS未显示运行时错误

!<%@ Language = VBScript%>


VBScript不是服务器编程语言。它是一种客户端编程语言。


IIS甚至不知道该脚本中发生的任何错误。

您需要调试VBScript客户端-b。


Juan T. Llibre,asp.net MVP

asp.net faq: http://asp.net.do/faq/

foros de asp.net,en espa?ol : http://asp.net.do/foros/

======================================

" race4space" < ra ******** @ discussion.microsoft.com写信息

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


IIS没有显示运行时错误 - 各种错误调试选项

(启用服务器端调试,向浏览器发送错误)已在IIS控制台中设置为true




没有错误发送到浏览器并且脚本在错误时停止运行。


这例如发生Option Explicit错误 - 即非

尺寸使用Option Explicit set在代码中引用变量。


<%@ Language = VBScript%>

<%Option Explicit%>

<%

Dim testMe

testMe =" Hello World!"

Response.Write" testMy : &安培; testMy

Response.End

%>


有任何意见吗?



Juan,感谢您的留言。但是VBScript是服务器编程

语言。


请参阅此Microsoft站点以确认:

http://msdn2.microsoft.com/en-us/ lib ... wf(VS.85).aspx

Microsoft Visual Basic Sc​​ripting Edition为各种广泛的环境带来了活动脚本,包括Web客户端Microsoft Internet中的脚本

Microsoft Internet信息服务中的资源管理器和Web服务器脚本。


" Juan T. Llibre"写道:


re:

!> IIS未显示运行时错误

!<% @ Language = VBScript%>


VBScript不是服务器编程语言。它是一种客户端编程语言。


IIS甚至不知道该脚本中发生的任何错误。

您需要调试VBScript客户端-b。



Juan T. Llibre,asp.net MVP

asp.net faq: http://asp.net.do/faq/

foros de asp.net, en espa?±ol: http://asp.net.do/foros/

======================================
" race4space" < ra ******** @ discussion.microsoft.com写信息

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


IIS没有显示运行时错误 - 各种错误调试选项

(启用服务器端调试,向浏览器发送错误)已在IIS控制台中设置为true




没有错误发送到浏览器并且脚本在错误时停止运行。


这例如发生Option Explicit错误 - 即非

尺寸使用Option Explicit set在代码中引用变量。


<%@ Language = VBScript%>

<%Option Explicit%>

<%

Dim testMe

testMe =" Hello World!"

Response.Write" testMy : &安培; testMy

Response.End

%>


有任何意见吗?




您是否在IE中关闭了友好错误?

http://support.microsoft.com/kb/294807


雷在工作


" race4space" < ra ******** @ discussion.microsoft.com写信息

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


IIS没有显示运行时错误 - 各种错误调试选项

(启用服务器端调试,向浏览器发送错误)已在IIS控制台中设置为

true




没有错误被发送到浏览器并且脚本在错误时停止运行。


例如发生Option Explicit错误 - 即非<在带有Option Explicit set的代码中引用了
dimensioned变量。


<%@ Language = VBScript%>

< %Option明确%>

<%

Dim testMe

testMe =" Hello World!"

Response.Write" testMy:" &安培; testMy

Response.End

%>


有任何意见吗?



Hi, IIS is not displaying run time errors - the various debugging options
(Enable Server Side Debugging, Send Errors to Browser) have been set to true
in the IIS console.

No Errors are sent to browser and the script stops running at the error.

This occurs for instance with an Option Explicit error - ie a non
dimensioned variable is referenced in code with Option Explicit set.

<%@ Language=VBScript %>
<% Option Explicit %>
<%
Dim testMe
testMe = "Hello World!"
Response.Write "testMy : " & testMy
Response.End
%>

Any comments , please ?

解决方案

re:
!>IIS is not displaying run time errors
!<%@ Language=VBScript %>

VBScript is not a server programming language. It''s a client-side programming language.

IIS doesn''t even know any error occurred in that script.
You need to debug VBScript client-side.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espa?ol : http://asp.net.do/foros/
======================================
"race4space" <ra********@discussions.microsoft.comwrote in message
news:04**********************************@microsof t.com...

Hi, IIS is not displaying run time errors - the various debugging options
(Enable Server Side Debugging, Send Errors to Browser) have been set to true
in the IIS console.

No Errors are sent to browser and the script stops running at the error.

This occurs for instance with an Option Explicit error - ie a non
dimensioned variable is referenced in code with Option Explicit set.

<%@ Language=VBScript %>
<% Option Explicit %>
<%
Dim testMe
testMe = "Hello World!"
Response.Write "testMy : " & testMy
Response.End
%>

Any comments , please ?



Juan, Thanks for your message. However VBScript is a server programming
language.

See this Microsoft site for confirmaiton of this:

http://msdn2.microsoft.com/en-us/lib...wf(VS.85).aspx
Microsoft Visual Basic Scripting Edition brings active scripting to a wide
variety of environments, including Web client scripting in Microsoft Internet
Explorer and Web server scripting in Microsoft Internet Information Service.

"Juan T. Llibre" wrote:

re:
!>IIS is not displaying run time errors
!<%@ Language=VBScript %>

VBScript is not a server programming language. It''s a client-side programming language.

IIS doesn''t even know any error occurred in that script.
You need to debug VBScript client-side.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espa?±ol : http://asp.net.do/foros/
======================================
"race4space" <ra********@discussions.microsoft.comwrote in message
news:04**********************************@microsof t.com...

Hi, IIS is not displaying run time errors - the various debugging options
(Enable Server Side Debugging, Send Errors to Browser) have been set to true
in the IIS console.

No Errors are sent to browser and the script stops running at the error.

This occurs for instance with an Option Explicit error - ie a non
dimensioned variable is referenced in code with Option Explicit set.

<%@ Language=VBScript %>
<% Option Explicit %>
<%
Dim testMe
testMe = "Hello World!"
Response.Write "testMy : " & testMy
Response.End
%>

Any comments , please ?




Do you have friendly errors turned off in IE?

http://support.microsoft.com/kb/294807

Ray at work

"race4space" <ra********@discussions.microsoft.comwrote in message
news:04**********************************@microsof t.com...

Hi, IIS is not displaying run time errors - the various debugging options
(Enable Server Side Debugging, Send Errors to Browser) have been set to
true
in the IIS console.

No Errors are sent to browser and the script stops running at the error.

This occurs for instance with an Option Explicit error - ie a non
dimensioned variable is referenced in code with Option Explicit set.

<%@ Language=VBScript %>
<% Option Explicit %>
<%
Dim testMe
testMe = "Hello World!"
Response.Write "testMy : " & testMy
Response.End
%>

Any comments , please ?



这篇关于IIS 7 - 设置调试选项时未显示错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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