Ryan Ritten wrote:
Quote:
Thanks for your replies.
>
I already had the "Show friendly HTTP error messages" unchecked.
Then the website is configured to send friendly messages. Tell godaddy to
look again. In IIS6, it would be a matter of right-clicking the site's
folder in IIS Mgr, clicking the Configuration button in the "Application
Settings" section of the Directory tab, and clicking into the Debugging tab
to find the "Send detailed error messages to client" radio button. I don't
have IIS7 but I can't imagine the steps would be that different.
Quote:
As
for writing my own error messages, it's not possible when the page has
an error. if the page has an error on it, it won't return anything to
your brower except the standard "500 error page". So any
document.writes will be ignored.
>
Not if you use "on error resume next" in your vbscript. Haven't you learned
how to handle errors in vbscript? Basically it's just a matter of:
'turn error-handling on:
on error resume next
<statement that might raise an error>
'check if error occurred
if err<>0 then
'error occurred - handle it - I suggest logging it in a file
'and sending a generic "error occurred" message to
'the client to avoid aiding hackers - however, for the
'sake of simplicity:
response.write err.description
response.end
end if
'turn off error handling - not a good idea to leave it on:
on error goto 0
You also might want to give this a read:
http://support.microsoft.com/kb/299986/EN-US/
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"