Last post Aug 24, 2011 12:03 PM by bebonham
Aug 22, 2011 07:01 PM|bebonham|LINK
if I make a request like http://sever/folder/this_folder_doesnt_exist
I can't seem to trap that error before it goes to the 404 page.
in my class that implements IHttpModule I have
public void Init(HttpApplication context)
context.Error += new EventHandler(context_Error);
void context_Error(object sender, EventArgs e)
this prints test if I hit a page that is 404
but not if it's a "folder in that case I get the default 404 message
How to I trap the 404 for directories like I can for files?
Aug 24, 2011 12:03 PM|bebonham|LINK
I figured that you can call clearError to get futher along the chain of events. I believe
PostResolveRequestCache is the last event you will get before you a redirected to a 404.