Re: Raise error when requesting files..
From: Ken Schaefer (kenREMOVE_at_THISadOpenStatic.com)
Date: 05/31/04
- Next message: Al Blake: "Re: SPS wont use kerberos"
- Previous message: Ken Schaefer: "Re: SPS wont use kerberos"
- In reply to: Solle: "Raise error when requesting files.."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 31 May 2004 16:49:13 +1000
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...
- Next message: Al Blake: "Re: SPS wont use kerberos"
- Previous message: Ken Schaefer: "Re: SPS wont use kerberos"
- In reply to: Solle: "Raise error when requesting files.."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]