This project is read-only.

Sending a 404 Not Found

Nov 16, 2012 at 5:09 PM

I want to know if we can force a 404 (without changing the e.Context.Url to something else). If so what is the best method of doing this, and under what event?

Does anyone have any examples of how you accomplished this with Filter.Net?

Nov 16, 2012 at 7:51 PM

I figured out a way to do it without changing the URL. The method I used was to use UrlMap, and set the e.Context.MappedPath to something that does not exist. Not exactly what I was hoping for but it sure does work. If anyone else has any ideas I would be happy to try them.