473,396 Members | 2,002 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,396 software developers and data experts.

Logging errors with ASP 404 error pages

When I had just setup my web site with IIS 5.0 the error
log contained the 3 things I needed for my site stats
page. The page that had that not been found (i.e.
site.com/nofile.html), the error number (404) and the
referrer (where the person came from to get to the bad
page); Now when I try to use my custom 404 page it only
logs the error number. How can I setup my page to log the
referrer and bad file page?
Jul 19 '05 #1
6 1871
http://www.aspfaq.com/2162
http://msdn.microsoft.com/library/en...l/404track.asp

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
"Matt Verstraete" <an*******@discussions.microsoft.com> wrote in message
news:10*****************************@phx.gbl...
When I had just setup my web site with IIS 5.0 the error
log contained the 3 things I needed for my site stats
page. The page that had that not been found (i.e.
site.com/nofile.html), the error number (404) and the
referrer (where the person came from to get to the bad
page); Now when I try to use my custom 404 page it only
logs the error number. How can I setup my page to log the
referrer and bad file page?

Jul 19 '05 #2
Thank you for your reply, I hvae looked over both these
pages and nither of them are for putting the information
in the IIS log, but simply to output it to the screen,
email, or database. Do you know how to do it to the IIS
LOG?
-----Original Message-----
http://www.aspfaq.com/2162
http://msdn.microsoft.com/library/en- us/dnvb600/html/404track.asp
--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
"Matt Verstraete" <an*******@discussions.microsoft.com> wrote in messagenews:10*****************************@phx.gbl...
When I had just setup my web site with IIS 5.0 the error
log contained the 3 things I needed for my site stats
page. The page that had that not been found (i.e.
site.com/nofile.html), the error number (404) and the
referrer (where the person came from to get to the bad
page); Now when I try to use my custom 404 page it only
logs the error number. How can I setup my page to log the referrer and bad file page?

.

Jul 19 '05 #3
http://aspfaq.com/show.asp?id=2162

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"Matt Verstraete" <an*******@discussions.microsoft.com> wrote in message
news:10*****************************@phx.gbl...
When I had just setup my web site with IIS 5.0 the error
log contained the 3 things I needed for my site stats
page. The page that had that not been found (i.e.
site.com/nofile.html), the error number (404) and the
referrer (where the person came from to get to the bad
page); Now when I try to use my custom 404 page it only
logs the error number. How can I setup my page to log the
referrer and bad file page?

Jul 19 '05 #4
Apologies Aaron, I've just noticed you'd replied to this :o\ (having a
blonde day today, lol)

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"Aaron Bertrand [MVP]" <aa***@TRASHaspfaq.com> wrote in message
news:eh**************@TK2MSFTNGP10.phx.gbl...
http://www.aspfaq.com/2162
http://msdn.microsoft.com/library/en...l/404track.asp

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
"Matt Verstraete" <an*******@discussions.microsoft.com> wrote in message
news:10*****************************@phx.gbl...
When I had just setup my web site with IIS 5.0 the error
log contained the 3 things I needed for my site stats
page. The page that had that not been found (i.e.
site.com/nofile.html), the error number (404) and the
referrer (where the person came from to get to the bad
page); Now when I try to use my custom 404 page it only
logs the error number. How can I setup my page to log the
referrer and bad file page?


Jul 19 '05 #5
> Thank you for your reply, I hvae looked over both these
pages and nither of them are for putting the information
in the IIS log, but simply to output it to the screen,
email, or database. Do you know how to do it to the IIS
LOG?


IIS is logged by requests to IIS (and the log already has the 404 request in
there!). I don't know that it's possible to inject your own entries into
the log stream...
Jul 19 '05 #6
i am realy not trying to put my own entries. I have found
that if I leave the default 404 settings as they are when
you first config a site it tracks everything but the
moment I change them it stop. If I change it back it logs
them. Any idea?
-----Original Message-----
Thank you for your reply, I hvae looked over both these
pages and nither of them are for putting the information
in the IIS log, but simply to output it to the screen,
email, or database. Do you know how to do it to the IIS
LOG?
IIS is logged by requests to IIS (and the log already has

the 404 request inthere!). I don't know that it's possible to inject your own entries intothe log stream...
.

Jul 19 '05 #7

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

Similar topics

4
by: Marcin | last post by:
Hi, The problem is the following: I have experienced some ASP errors in my web application and I'm unable to reproduce those errors because IIS is configured in a way that does not send any...
6
by: Kevin Jackson | last post by:
Let's say we log exceptions to the windows application event log using the Exception Management Application Block. Is there a pattern that can be used so the exception is logged only once and not...
4
by: Denise | last post by:
I am trying to implement database error logging in my asp.net application. When I inspect the exception variable, I see that there is a property called 'procedure' which I believe is the procedure...
1
by: ss | last post by:
Hi Can anyone show a sample code where the error handling is done with the logging the errors. What are the best methods of logging the errors in .net perticularly in WEB Application ...
7
by: Leo Breebaart | last post by:
I have another question where I am not so much looking for a solution but rather hoping to get some feedback on *which* solutions people here consider good Pythonic ways to approach a issue. ...
1
by: Tom Kearney | last post by:
Hi - I'm trying to use "Microsoft.VisualBasic.Logging.FileLogTraceListener" from a set of C# aspx web pages, but I can't seem to use: <%@ Import Namespace="Microsoft.VisualBasic.Logging" %> I...
7
by: flupke | last post by:
Hi, i'm getting errors with the log module concerning RotatingFileHandler. I'm using Python 2.4.3 on Windows XP SP2. This used to work in previous python versions but since i upgraded to 2.4.3...
0
by: rajesh.hanchate | last post by:
Please help me in resolving this issue. I am using EnterpriseLibrary 2.0 Exception and logging block for logging exceptions to event log. It works fine for sometime. After some time it stops...
1
by: Ryan | last post by:
I am trying to log events to SQL Server instead of the computers event log, but, although I get no errors, I have no luck. The webevents_events table is empty. I have a custom event that I am...
6
by: Thomas Heller | last post by:
I'm using the logging module in my comtypes library to log 'interesting' things that happen. In other words, the idea is if the user of the library is interested in the details that happen in the...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...

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.