User52593762 posted
Hi all,
I am running IIS7 on Vista Home Premium.
I have the following issue: not all errors in Classic ASP pages (using VBScript) are generating a 500 error. Some generate a 200 status code and stop the page from further executing. I find this very frustrating!
For example - this works (of course):
<% Option Explicit %>
<%
Dim strResponse
strResponse=generateString()
Response.Write(strResponse)
Function generateString()
generateString="Hello all!"
End Function
%>
This should trow an error (because the function generateString2 does not exist):
<% Option Explicit %>
<%
Dim strResponse
strResponse=generateString2()
Response.Write(strResponse)
Function generateString()
generateString="Hello all!"
End Function
%>
But it DOESN'T!!! The page just stops executing....
On XP Pro with IIS5 it trows a 500 error (as expected).
Some Classic ASP errors do trow "normal" error messages. Syntax errors for example:
<% Response.Write("Hello"); %>
do show up in the logs and the failed request tracing folder as expected.
Just for the record: the IIS log file tells me that ther is nothing wrong (status code 200). I have the failed request tracing setup which traces 500 errors. But nothing is there...
So please help me...
Is this an IIS settings issue? Or something else?
What should I do??
Thanks in advance!
Johan.