IIS 404 Error..

In IIS I've configured the 404 error to point to my own error file, which works fine.

But is it possible to find out the page name that doesn't exist and hence caused the 404. (Maybe with Javascript history?)

This so I can give the user the option to send an email to myself with page details.

(I'm using ASP as well so if your answer involves ASP fine!)
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Hi there:
I use this technique:

-Use MMC to open your web properties.
-Select Web properties
-Tab Custom errors
-Edit properties
-Message type = URL
-Point to your presonalized page (I use an ASP page)

My personalized page get the bad url request with

sBadURL = Request.QueryString

This is an example of what I get in sBadURL:


So you can use this value as you want.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rupertsAuthor Commented:
Right I will try it tonight on my webserver, currently the one at work is "suffering".

But I recall having problems using ASP pages when redirecting from custom errors.
rupertsAuthor Commented:
Still waiting to test it!

Proxy server is down, so I can't access the site (long story)...
Don't worry

rupertsAuthor Commented:
Doh...I set it up as a file not a URL, no wonder I was having problems.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.