| Ken Schaefer 2004-05-31, 2:49 am |
| Do you just want to return a HTTP 500 Status? If so, you can write an ISAPI
filter or similar for that.
If you want to raise an application exception, easiest might be using .Net
Add the .jpg extension to the list of extensions that ASP.NET handles, and
write your own HTTPHandler, which can then do what it wants, including
raising System.Exception etc
Cheers
Ken
"Solle" <anonymous@discussions.microsoft.com> wrote in message
news:477FE101-D97D-4C6F-B516-13CF955432A5@microsoft.com...
: Just wondering if its possible to raise an error when requesting eg. a JPG
file, just like requesting the global.asa?
:
: When requesting the global.asa you'll get the "HTTP Error 500-15 -
Requests for global.asa not allowed" error ... and I would like something
similar with the .JPG file...
|