views:

205

answers:

1

Is it possible to get the URL of the failed request from a custom 404 error page? I'm using IIS to set the custom error page to a .net page where I want to process the failed request.

I've tried using the url and referer attributes from the request object but they don't work.

+1  A: 

Try using your web.config to point to a custom error page and leave out the IIS setting. See if you get a Referrer then.

tsilb
I tried using the web.config but it only handles .aspx errors and not .html files.
CL4NCY
May I suggest you add that in your question?
tsilb