Re: How does HttpHandler section work?!?
From: Dragos Gafita (aaa@aaa.com)
Date: 11/27/02
- Next message: Govind Rathi: "Re: Windows Authentication issue"
- Previous message: Mike Shaw [MS]: "Re: Dynamically modify Web.config"
- In reply to: John Saunders: "Re: How does HttpHandler section work?!?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Dragos Gafita" <aaa@aaa.com> Date: Wed, 27 Nov 2002 14:18:57 +0200
Thank you! Nice and simple solution. I should have thought about it :)
"John Saunders" <jws@jws.ultranet.com> wrote in message
news:O#CJz9GlCHA.2156@tkmsftngp12...
> Are .jpg files even getting to ASP.NET? Check the IIS configuration under
> "Home Directory". JPEG files aren't normally mapped to ASP.NET, so your
> configuration doesn't matter. Configure the .jpg extension like .aspx is
> configured and you should be ok.
> --
> --
> John Saunders
> Internet Engineer
> john.saunders@surfcontrol.com
>
> "Dragos Gafita" <aaa@aaa.com> wrote in message
> news:e2a4D6FlCHA.716@tkmsftngp11...
> > Hi!
> > I have a weird problem. In my web.config file I've added the following
> > lines:
> >
> > <httpHandlers>
> > <add verb="*" path="*.jpg" type="System.Web.HttpForbiddenHandler"/>
> > </httpHandlers>
> >
> > I did so because I wanted to prevent any .jpg from being downloaded. All
> > .jpg are located in a directory called "Pictures" that belongs to the
app
> > dir. Why am I still able to view the pictures and save them using the
> > browser?!? Can anyone, please, tell me what's wrong?
> > Thank you.
> >
> >
> >
> >
>
>
- Next message: Govind Rathi: "Re: Windows Authentication issue"
- Previous message: Mike Shaw [MS]: "Re: Dynamically modify Web.config"
- In reply to: John Saunders: "Re: How does HttpHandler section work?!?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|