IIS not display ASP errors

A

austinJim

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!
 
J

Jeff Cochran

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/webtech/faq/Intermediate/faq6.shtml

Jeff
 
A

Aaron [SQL Server MVP]

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
 
J

Jeff Cochran

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
 
B

Bã§TãRÐ

It may be kind of obvious but did you try turning off Show Friendly HTTP errors in IE?
 
A

Aaron [SQL Server MVP]

Do you have server-side debugging turned on? Are you using a custom error
handler for 500 errors?
 
A

austinJim

I have both Enable ASP Server Side Script Debugging and Enable ASP Client
Side Debugging as well as Send Detailed Error Messages to Client checked. I
have 500 error handling set to default. Absolutely nothing is displayed but
the html that is generated by the ASP page before the error is output. It's
as if processing of the page just stopped.

Aaron said:
Do you have server-side debugging turned on? Are you using a custom error
handler for 500 errors?

--
http://www.aspfaq.com/
(Reverse address to reply.)




austinJim said:
I guess including a code example was misleading. My problem has nothing to do
with this piece of code. My problem is that ANY vbscript error is not
displayed in the browser. I do have friendly error messages turned off in the
browser and this problem occurs using IE or Mozilla so I think it's a server
problem. When I view source it's clear that processing stopped and an error
was encountered but no error message is displayed. I'm looking for some way
to get the errors to display again.
Thanks!

Jeff Cochran said:
On Tue, 3 Aug 2004 10:17:41 -0400, "Aaron [SQL Server MVP]"

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
 
A

Aaron [SQL Server MVP]

Try turning off both debugging settings.

--
http://www.aspfaq.com/
(Reverse address to reply.)




austinJim said:
I have both Enable ASP Server Side Script Debugging and Enable ASP Client
Side Debugging as well as Send Detailed Error Messages to Client checked. I
have 500 error handling set to default. Absolutely nothing is displayed but
the html that is generated by the ASP page before the error is output. It's
as if processing of the page just stopped.

Aaron said:
Do you have server-side debugging turned on? Are you using a custom error
handler for 500 errors?

--
http://www.aspfaq.com/
(Reverse address to reply.)




austinJim said:
I guess including a code example was misleading. My problem has
nothing to
do
with this piece of code. My problem is that ANY vbscript error is not
displayed in the browser. I do have friendly error messages turned off
in
the
browser and this problem occurs using IE or Mozilla so I think it's a server
problem. When I view source it's clear that processing stopped and an error
was encountered but no error message is displayed. I'm looking for
some
way
to get the errors to display again.
Thanks!

:

On Tue, 3 Aug 2004 10:17:41 -0400, "Aaron [SQL Server MVP]"

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
 
H

Henning

Hi!

I am experiencing some of the same problems here. I have a web app that
has been tested on a win2000 IIS 5.0 server for some time now
(production). Lately we have bought a new, more powerful server running
win2003 server std. edt. I have noticed that some of my asp pages stops
running if they take some time. I have set the scripttimeout quite high,
and the page is not executing for that amount of time. But, I get no
error either. Just "Page can not be found". I have ofcourse all the
debugging, etc. on. Disabled friendly errors in IE, but still!!!! I have
a script that loops through some records from my sql server. The funny
thing is that if I stop the asp script when it has read 42 times from
the database by just adding a response.end, everything works fine. Then
if I let the script read just one more time from the database, I get the
"Page can not be found - Cannot find server or DNS error". The funny
thing is that along the way it says "opening http://.....", then "Web
site found, waiting for reply" then suddenly just the "page cannot.."
page appears.

Was it not something like this you experienced??? Did you ever solve the
case???

Henning :)
 
H

Henning

Hi!

No, nothing in the Event viewer. Also seems like the page isn't getting
an entry in the iislog either.

I have now tried the same code on 3 different win2003 servers, and they
all fail. Still the exact same code as the one running on the production
server (win2000).

Is there anything more I can turn on to debug. I have never seen
anything special from iis in the eventviewer.

Henning :)
 
B

Brad Kingsley

Watch Performance Monitor while running the scripts to see if perhaps you
are leaking memory and the IIS process is blowing up, or if you are spawning
threads or something else like that.


--
~Brad Kingsley
Microsoft MVP - ASP/.Net
Windows 2000 MCSE

http://www.orcsweb.com/
Powerful Web Hosting Solutions
#1 in Service and Support
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,154
Members
46,701
Latest member
XavierQ83

Latest Threads

Top