Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Problem with custom error page
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 02 April 2008 :  05:46:16  Show Profile
In yet another first, I've created some pages to handle 403, 404 and 500 errors encountered on one of my sites but I'm having a problem with the 500 error page. If the error occurs after anything else has been written on the page then the 500.asp file is written after that, causing some funky HTML/XML errors. You can see an example of what's happening here <link removed /> (source). This <link removed /> is how it should look (source). I've already tried setting response.buffer to true so I'm guessing, maybe, it's something I've missed in IIS.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”

Edited by - Shaggy on 07 April 2008 04:59:44

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 04 April 2008 :  07:39:11  Show Profile
Bumpage! (Sorry)


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

pdrg
Support Moderator

United Kingdom
2897 Posts

Posted - 05 April 2008 :  13:56:12  Show Profile  Send pdrg a Yahoo! Message
Would response.clear help?

Also, instead of on error resume next, could you just handle the error?

Edited by - pdrg on 05 April 2008 13:57:34
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 07 April 2008 :  04:57:34  Show Profile
quote:
Originally posted by pdrg
Would response.clear help?
*bounces head off desk* Of course it would - silly Shaggy!


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07