By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,634 Members | 1,898 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,634 IT Pros & Developers. It's quick & easy.

IIS not display ASP errors

P: n/a
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!
Jul 19 '05 #1
Share this Question
Share on Google+
12 Replies


P: n/a
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
Jul 19 '05 #2

P: n/a
> 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

--
http://www.aspfaq.com/
(Reverse address to reply.)
Jul 19 '05 #3

P: n/a
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
Jul 19 '05 #4

P: n/a
BTR
It may be kind of obvious but did you try turning off Show Friendly HTTP errors in IE?

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!


Jul 19 '05 #5

P: n/a
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" <au*******@discussions.microsoft.com> wrote in message
news:B5**********************************@microsof t.com...
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" wrote:
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 expectVBScript 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

Jul 19 '05 #6

P: n/a
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 [SQL Server MVP]" wrote:
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" <au*******@discussions.microsoft.com> wrote in message
news:B5**********************************@microsof t.com...
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" wrote:
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


Jul 19 '05 #7

P: n/a
Unfortunately, yes :(

"Bc'TcRP" wrote:
It may be kind of obvious but did you try turning off Show Friendly HTTP errors in IE?

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!


Jul 19 '05 #8

P: n/a
Try turning off both debugging settings.

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


"austinJim" <au*******@discussions.microsoft.com> wrote in message
news:C2**********************************@microsof t.com...
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 [SQL Server MVP]" wrote:
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" <au*******@discussions.microsoft.com> wrote in message
news:B5**********************************@microsof t.com...
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" wrote:

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


Jul 19 '05 #9

P: n/a
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 :-)

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #10

P: n/a
Anything in the Event Log?

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

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



"Henning" <ko********@devdex.com> wrote in message
news:Op**************@TK2MSFTNGP11.phx.gbl...
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 :-)

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 19 '05 #11

P: n/a
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 :-)
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #12

P: n/a
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


"Henning" <ko********@devdex.com> wrote in message
news:ON*************@TK2MSFTNGP11.phx.gbl...
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 :-)
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 19 '05 #13

This discussion thread is closed

Replies have been disabled for this discussion.