Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > IIS 7 - Error Messages Not Displayed tho Debugging Options set in

Reply
Thread Tools

IIS 7 - Error Messages Not Displayed tho Debugging Options set in

 
 
race4space
Guest
Posts: n/a
 
      01-21-2008
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 ?



 
Reply With Quote
 
 
 
 
Juan T. Llibre
Guest
Posts: n/a
 
      01-21-2008
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" <> wrote in message
news:04339B06-0A90-44A9-993D-...
> 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 ?
>
>
>



 
Reply With Quote
 
 
 
 
race4space
Guest
Posts: n/a
 
      01-21-2008
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" <> wrote in message
> news:04339B06-0A90-44A9-993D-...
> > 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 ?
> >
> >
> >

>
>
>

 
Reply With Quote
 
Ray Costanzo
Guest
Posts: n/a
 
      01-21-2008
Do you have friendly errors turned off in IE?

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

Ray at work

"race4space" <> wrote in message
news:04339B06-0A90-44A9-993D-...
> 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 ?
>
>
>



 
Reply With Quote
 
race4space
Guest
Posts: n/a
 
      01-21-2008
I should add this occurs on Windows Vista Business Edition running IIS 7

"race4space" wrote:

> 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" <> wrote in message
> > news:04339B06-0A90-44A9-993D-...
> > > 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 ?
> > >
> > >
> > >

> >
> >
> >

 
Reply With Quote
 
race4space
Guest
Posts: n/a
 
      01-21-2008
Hi ! I have "Show Friendly HTTP Error Messages" unticked in IE. In addtion
the behavior occurs when I view the page in Firefox. This indicates it is not
a browser issue but an IIS 7 issue. (It is a classic ASP script).

This post from another person also points to the problem:

http://forums.iis.net/p/1118833/1741397.aspx

"Ray Costanzo" wrote:

> Do you have friendly errors turned off in IE?
>
> http://support.microsoft.com/kb/294807
>
> Ray at work
>
> "race4space" <> wrote in message
> news:04339B06-0A90-44A9-993D-...
> > 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 ?
> >
> >
> >

>
>
>

 
Reply With Quote
 
Juan T. Llibre
Guest
Posts: n/a
 
      01-21-2008
What that quote means is that you can use VBScript in ASP/IIS.
You cannot use it in server-side ASP.NET/IIS.

That script you wrote will *not* execute server side.
Believe me. I have co-written several books on ASP and ASP.NET.



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" <> wrote in message
news:236F9BC7-37CD-48EA-876C-...
> 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" <> wrote in message
>> news:04339B06-0A90-44A9-993D-...
>> > 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 ?
>> >
>> >
>> >

>>
>>
>>



 
Reply With Quote
 
Ray Costanzo
Guest
Posts: n/a
 
      01-21-2008
Hey Juan. I think maybe he's using a .asp extension and just posted to the
wrong group. :]

Ray at work

"Juan T. Llibre" <> wrote in message
news:...
> What that quote means is that you can use VBScript in ASP/IIS.
> You cannot use it in server-side ASP.NET/IIS.
>
> That script you wrote will *not* execute server side.
> Believe me. I have co-written several books on ASP and ASP.NET.
>
>


 
Reply With Quote
 
Juan T. Llibre
Guest
Posts: n/a
 
      01-21-2008
Yup.

It certainly looks that way.



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/
======================================
"Ray Costanzo" <my first name at lane34 dot commercial> wrote in message news:%...
> Hey Juan. I think maybe he's using a .asp extension and just posted to the wrong group. :]
>
> Ray at work


> "Juan T. Llibre" <> wrote in message news:...
>> What that quote means is that you can use VBScript in ASP/IIS.
>> You cannot use it in server-side ASP.NET/IIS.
>>
>> That script you wrote will *not* execute server side.
>> Believe me. I have co-written several books on ASP and ASP.NET.



 
Reply With Quote
 
Chris Marsh
Guest
Posts: n/a
 
      01-21-2008
race4space

Your code as follows has a typo in it:

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


You reference the variable testMy, but you declared the variable testMe.

HTH

--
Regards

Chris Marsh


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
vista 64 cant find my drivers after restart, even tho they are the Xmortis Windows 64bit 7 07-02-2008 02:04 PM
Forward Declaration produces an error (no cyclic dependencies tho) elmar_macek@gmx.de C++ 2 09-26-2007 12:50 PM
laptop no longer recognises PCMCIA card in XP tho it did in 2000 - =?Utf-8?B?TWlrZUJlYXJkc2hhbGw=?= Wireless Networking 4 10-13-2004 03:24 AM
Record not being deleted in dbase, even tho the display on datagrid is deleted.. Chumley the Walrus ASP .Net Web Controls 2 08-10-2004 02:23 PM
wanting to do MCSA (it's a bit long tho) richard MCSA 5 02-09-2004 02:56 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57