468,310 Members | 1,425 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,310 developers. It's quick & easy.

Problems with httpHandlers --> Help me please

Hi,

I want to protected all files in my website, so I try to use httpHandlers, I put this in my WEB.CONFIG (at the end of page), but I can't protected the files type MDB, CSB, can someone help me? :

<httpHandlers>

<add verb="*" path="*.mdb" type="System.Web.HttpForbiddenHandler" />

<add verb="*" path="*.csv" type="System.Web.HttpForbiddenHandler" />

</httpHandlers>

I see this example in http://support.microsoft.com/default...b;EN-US;815152

Nov 15 '05 #1
2 1393
Luis
1) Please use plain text format if possible when posting
2) You may want to try posting to the asp.net forum instead of C#

3) In order for your handlers to ever have an effect, the file extensions in
question must be mapped to ASP.NET in IIS's configuration. By default, IIS
asks ASP.NET to handle only .aspx, ascx, asax, asmx, ashx, .cs, .vb,
possibly a few more. In IIS6.0, it's possible to construct a wildcard
mapping that will map all requests to ASP.NET. In IIS5.0, you'll have to do
it the hard way.

Read this link for much more information:
http://aspnet.4guysfromrolla.com/articles/020404-1.aspx

"Luis" <ll*@telefonica.net> wrote in message
news:ua****************@tk2msftngp13.phx.gbl...
Hi,

I want to protected all files in my website, so I try to use httpHandlers, I
put this in my WEB.CONFIG (at the end of page), but I can't protected the
files type MDB, CSB, can someone help me? :

<httpHandlers>
<add verb="*" path="*.mdb" type="System.Web.HttpForbiddenHandler" />
<add verb="*" path="*.csv" type="System.Web.HttpForbiddenHandler" />
</httpHandlers>

I see this example in
http://support.microsoft.com/default...b;EN-US;815152
Nov 15 '05 #2
Thanks and sorry...
Luis

"Philip Rieck" <st***@mckraken.com> escribió en el mensaje
news:uH****************@TK2MSFTNGP12.phx.gbl...
Luis
1) Please use plain text format if possible when posting
2) You may want to try posting to the asp.net forum instead of C#

3) In order for your handlers to ever have an effect, the file extensions in question must be mapped to ASP.NET in IIS's configuration. By default, IIS asks ASP.NET to handle only .aspx, ascx, asax, asmx, ashx, .cs, .vb,
possibly a few more. In IIS6.0, it's possible to construct a wildcard
mapping that will map all requests to ASP.NET. In IIS5.0, you'll have to do it the hard way.

Read this link for much more information:
http://aspnet.4guysfromrolla.com/articles/020404-1.aspx

"Luis" <ll*@telefonica.net> wrote in message
news:ua****************@tk2msftngp13.phx.gbl...
Hi,

I want to protected all files in my website, so I try to use httpHandlers, I put this in my WEB.CONFIG (at the end of page), but I can't protected the
files type MDB, CSB, can someone help me? :

<httpHandlers>
<add verb="*" path="*.mdb" type="System.Web.HttpForbiddenHandler" />
<add verb="*" path="*.csv" type="System.Web.HttpForbiddenHandler" />
</httpHandlers>

I see this example in
http://support.microsoft.com/default...b;EN-US;815152

Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Patrick von Harsdorf | last post: by
3 posts views Thread by PCgeek | last post: by
1 post views Thread by google | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.