Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 8th, 2005, 08:46 AM
Authorized User
 
Join Date: Jun 2003
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default Unwanted error page displayed

Whenever I run an ASP page via IIS5, any VBScript errors result in an error page being displayed. I don't want this - I want to be able to display the page output, includin the Response.Write statements I have put in to assist in debugging.

How do I stop the error pages being displayed?

Thanks
Pat

-------------------
System 3 2000 Limited
www.system3-2000.co.uk
__________________
-------------------
System 3 2000 Limited
www.system3-2000.co.uk (but very out-of-date!)
 
Old February 8th, 2005, 09:52 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default

For this, you need to administer IIS. The steps are

1) Open IIS Manager

2) Rightclick the site / virtual directory (listed on the left) and open properties.

3) Open custom errors tab.

4) Select the HTTP error 500;100. The corresponding URL is /iisHelp/common/500-100.asp by default.

5) Click edit properties. Give the URL of your new error page. (Path either absolute or relative to the virtual directory).

6) Apply. Restart the virtual directory / site.

It should work now.

HTH

Madhu
 
Old February 8th, 2005, 10:07 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default

Also,

Response.Buffer has to be false for you to see intermediate results just before errors.





Similar Threads
Thread Thread Starter Forum Replies Last Post
mail send error :page cannot be displayed KamalRaturi ASP.NET 2.0 Professional 2 May 5th, 2008 10:59 AM
tables causing unwanted page breaks Bret BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 1 September 26th, 2006 01:58 AM
this page can not be displayed "error" p2ptolu Classic ASP Databases 12 July 8th, 2005 12:04 PM
Terrible error: The page cannot be displayed csun ASP.NET 1.0 and 1.1 Basics 2 November 9th, 2004 10:16 AM
Error Message: The page cannot be displayed BSkelding ASP.NET 1.0 and 1.1 Basics 2 April 23rd, 2004 11:27 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.