473,407 Members | 2,315 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Setting up error pages

Hi guys,

Not sure if this is an IIS query or ASP, however, I'll try here first.

I'm trying to create custom error pages where I can report to the user (and
email myself) when I get 404 errors. My problem isn't the asp code side (as
I have this working on my hosting companies server) but when I develop I
want to be able to have the same event occuring.

Basically I need to somehow set up or understand how my hosting companies
site provides a url that looks like
http://www.mydomain.com/errors/404.a...esnotexist.asp

At the moment it just shows http://www.mydomain.com/errors/404.asp so I
can't pull out the error type and path to the file that doesn't exists.

Is this somehow done with asp? or a setting in IIS?
I have lookd on the web and found stuff about URL mapping but it mentioned
virtual directories and such which I don't have on my site.

Any comments on how this is achieved (either coding or how to set it up in
IIS) would be greatly appriciated.

Cheers
Stu

--

Aug 6 '06 #1
2 1187
Stuart Palmer wrote:
Hi guys,

Not sure if this is an IIS query or ASP, however, I'll try here first.

I'm trying to create custom error pages where I can report to the
user (and email myself) when I get 404 errors. My problem isn't the asp
code
side (as I have this working on my hosting companies server) but when I
develop I want to be able to have the same event occuring.

Basically I need to somehow set up or understand how my hosting
companies site provides a url that looks like
http://www.mydomain.com/errors/404.a...esnotexist.asp

At the moment it just shows http://www.mydomain.com/errors/404.asp so
I can't pull out the error type and path to the file that doesn't
exists.
Is this somehow done with asp? or a setting in IIS?
I have lookd on the web and found stuff about URL mapping but it
mentioned virtual directories and such which I don't have on my site.

Any comments on how this is achieved (either coding or how to set it
up in IIS) would be greatly appriciated.
http://www.aspfaq.com/show.asp?id=2162
--
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"
Aug 6 '06 #2
>>http://www.aspfaq.com/show.asp?id=2162

Thanks, I had already found this page but it doesn't actually do what i want
it to do (even though it does describe what I want). By clicking the 'Here
is an example' link, it just prvoides a url but doesn't actually give me the
querystring format I am after (?404;) instead all it does is keep the url
selected but show the 404 page.

Could his be a setting in my browser? or do I need to add some code in my
404 to process it as I would expect?

Stu
Aug 7 '06 #3

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

Similar topics

19
by: Joshua Beall | last post by:
Hi All, I would like to setup my site so that when a page is request that does not exist, transfer is instead passed to a certain page that I specify. For instance, if the user requests...
1
by: Erik Hendrix | last post by:
Hi, I have a question here regarding setting the prefetch size. So far we took the rule that for OLTP, prefetchsize = extent size and for DSS prefetchsize = extent size * number. However,...
5
by: Yifan | last post by:
Hi Could any one tell me what project property controls the setting of '/RTC1' option? Now I have a project which has this build error "Command line error D2016 : '/RTC1' and '/clr' command-line...
4
by: Jm | last post by:
I'm trying to set up ASP.NET on my Windows 2000 server w/ IIS 5 and MS ISA Server. Here's what I have done so far without any luck. Here's the results from the pages I've created...
1
by: LidorP | last post by:
Hello All, My problem is as follows: I have an assembly which holds a number of WebForms. In order to use these WebForms in my WebApplication i have to extract them out of the assembly (using...
11
by: Wolfgang Kaml | last post by:
I am not sure if this is more of an expert question, but I am sure that they are out there. I'd like to setup a general application or bin directory on my Win2003.Net Server that will hold some...
2
by: junlia | last post by:
Hi All, I am working on a project that acts as a bridge. It does some checking with post xml data, and then redirects the request to an appropriate page. However, we find that depends on the...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
8
by: Jonathan Wood | last post by:
I want to dynamically set my site's theme based on a setting stored in my database. I just hooked this up but get an error that the theme can only be set in the page's PreInit event or earlier....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.