473,396 Members | 1,913 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

IIS not display ASP errors

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
12 3631
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
> 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
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
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
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
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Steve - DND | last post by:
I was wondering if anyone can point me to some articles or practices they use for dealing with errors in their applications; particularly in an n-tier design. I am trying to find one way to...
2
by: John | last post by:
Hi. When I use VB.NET projects, Visual Studio refreshes the display when I correct errors. (i.e. removes the blue and red lines under syntax errors etc.) But when I use C# projects, the display...
0
by: M. David Johnson | last post by:
I cannot get my OleDbDataAdapter to update my database table from my local dataset table. The Knowledge Base doesn't seem to help - see item 10 below. I have a Microsoft Access 2000 database...
2
by: ruby_bestcoder | last post by:
Hi Im having problem in firefox with display:none/block. I have essentially 3 li elements. In each element there are a few nested div:s. Clicking on one of the divs, makes another div to...
2
by: * Tong * | last post by:
Hi, I'm wondering if you can show me an example php page that allows me to retrieve and display 3rd party pages. I.e., when my php script is called as http://site/path/getit.php?file_key it...
4
ak1dnar
by: ak1dnar | last post by:
Hi, I have created a PHP page that write down form data to mySQL table. Before i submit data I want to check the Input field, whether it has filled up or Not. the form should validate from the PHP...
1
by: nitinpatel1117 | last post by:
I have display errors set to on in my php configuration. i only want to turn of display errors on one particular page/script i have tried to use the set_ini() and error_reporting() functions,...
1
by: William Gill | last post by:
I hope I can state this clearly enough. I am redoing some of my html(php) forms. I'm trying to break things into three functions on a self processing php page: 1) show the form (and populate...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.