473,715 Members | 2,193 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Checking for errors accross website with include file ?

Hi,

Is there a general way of placing an 'error_check' include file into
my website, and put the include line onto all 'asp' pages. In the
event that any error occurs on any asp page or with the database,
instead of the user seeing the error on screen, they would be
redirected to a custom error page ?

Apprecaite your help
Thanks
David

Mar 7 '07 #1
3 1374

"David" <da*********@sc ene-double.co.ukwro te in message
news:11******** **************@ j27g2000cwj.goo glegroups.com.. .
Hi,

Is there a general way of placing an 'error_check' include file into
my website, and put the include line onto all 'asp' pages. In the
event that any error occurs on any asp page or with the database,
instead of the user seeing the error on screen, they would be
redirected to a custom error page ?

Apprecaite your help
Thanks
David
Create your custom error page and then use the Custom Errors tab on the Web
sites properties dialog to edit the 500;100 handler. I tend to use a URL
for an ASP page however you can also specify simple htm file.

Note you can use Server.GetLastE rror object in a handler page to embedded
some error details in the output. You could use a display:none DIV to place
these technical details and use a 'Display Technical Details' button on the
page.

Mar 7 '07 #2
This is fine if you have access to IIS admin, what can I do if my site
is hosted with a remote company ?

_______________ _______________ _______________ _______________ _______________ _______________ ______

Create your custom error page and then use the Custom Errors tab on the Web
sites properties dialog to edit the 500;100 handler. I tend to use a URL
for an ASP page however you can also specify simple htm file.

Note you can use Server.GetLastE rror object in a handler page to embedded
some error details in the output. You could use a display:none DIV to place
these technical details and use a 'Display Technical Details' button on the
page.

Mar 7 '07 #3

"David" <da*********@sc ene-double.co.ukwro te in message
news:11******** *************@3 0g2000cwc.googl egroups.com...
This is fine if you have access to IIS admin, what can I do if my site
is hosted with a remote company ?

Instruct the remote company that you want a specific page to used to handle
500;100 status codes on your site. If they aren't interested in making such
a change for you then find an alternative supplier for the service. It's
your site and you not asking for anything that could compromise the server.

_______________ _______________ _______________ _______________ _______________ _
_______________ _____
>
Create your custom error page and then use the Custom Errors tab on the
Web
sites properties dialog to edit the 500;100 handler. I tend to use a
URL
for an ASP page however you can also specify simple htm file.

Note you can use Server.GetLastE rror object in a handler page to
embedded
some error details in the output. You could use a display:none DIV to
place
these technical details and use a 'Display Technical Details' button on
the
page.


Mar 7 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1795
by: R. Gregg Reed | last post by:
I'm trying to intergrate a cgi affiliate tracking system into a php website. When someone pays using PayPal it's supposed to direct them to one page if the payment is a success or another if payment failed. This is the code: if($action == order && $order_n != "") { include "engine/card_process.pml";
1
2429
by: Stymiee | last post by:
I'm writing a perl script to send out a joke of the day for my website. It is accessing a mysql db (I use php for the rest of the site. This will be a cron job so I figured perl would be better suited for that). I can get it to do everything it is supposed to do to send a the joke via email. But what I'm trying to do now is add some error checking so if there is a problem, I can be notified about it. What I need is to know how to check...
1
3186
by: Hafeez | last post by:
I am having real trouble compiling this code http://www.cs.wisc.edu/~vganti/birchcode/codeHier/AttrProj.tgz The attachment shows errors when compiled using the current version of g++ in a i386-pc-solaris2.9. Seeing reference to gcc-2.7.2 in the Makefile of the code, I downloaded it and compiled in my home directory. Then changed the referenes of LIBDIR and INCLUDES to this installation .and ran with g++ for 2.7.2 then there are still...
6
2396
by: RoSsIaCrIiLoIA | last post by:
Do you know how to write a self-checking program in standard C? Do I can think that if I write in a file.c static g="1234567"; in the file.exe (or file) there is in some place 1234567'\0''\0''\0''\0''\0''\0''\0'...'\0' This is my first attempt: /* file.c -> file.exe */ #include <stdio.h>
9
6412
by: zolli | last post by:
Hi, I've been banging my head against this for a while now. Hoping someone here can shed some light on what's going on. On including stdlib.h in a file, I'm seeing the following errors: ----BEGIN ERRORS---- gcc -g3 -DUSE_LIBC -Wall -c -I../mm -I../include -I/usr/include -I/usr/include/linux -o mm_tree_test.o mm_tree_test.c
16
2628
by: lawrence k | last post by:
I've made it habit to check all returns in my code, and usually, on most projects, I'll have an error function that reports error messages to some central location. I recently worked on a project where someone suggested to me I was spending too much time writing error messages, and that I was therefore missing the benefit of using a scripting language. The idea, apparently, is that the PHP interpreter writes all the error messages that are...
1
2565
by: =?Utf-8?B?TWF5?= | last post by:
We are getting WebForm_DoPostBackWithOptions is not defined and other Java script errors related to WebResource.axd file. I narrowed down the problem and found out the cause but can't come up with a solution based on our application setup. Here is is how our web sites configured on IIS. Multiple web sites points to the same IP address and some of these web sites has sub-virtual directories, for example mystore.com is a web site that has...
8
2398
by: MarkusJNZ | last post by:
Hi, I need to write some code to ensure that a website is still online. I was just going to write some code (Using System.NET webrequest) to retrieve the HTML from a website and if the length was 0 then the website was unavailable; However, if I get a 404 error then obviously the above would not work. I also thought of just using a ping but again some websites may be
1
1049
by: rpupkin77 | last post by:
Hi, I have written this script to run as a cron that will loop through a text file with a list of urls. It works fine for most of the links, however there are a number of urls which are subdomains (they are government sites) such as http://basename.airforce.mil, these links are always throwing 400 errors even though the site exists. Is there a way to get around this?
0
8817
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8715
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9092
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9037
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7963
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5964
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3170
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2531
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2116
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.