472,780 Members | 1,900 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,780 software developers and data experts.

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 1506
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Patrick von Harsdorf | last post by:
I want to iterate over a collection and delete all unwanted entries. for item in collection: del item of course doesn´t do anything useful. Two things come to mind: a) iterating backwards...
8
by: slim | last post by:
hi again all, i am still working on the website as mentioned in earlier threads and have hit another snag... http://awash.demon.co.uk/index.php http://awash.demon.co.uk/vd.css the php is...
4
by: Mark Hanley | last post by:
I have found similar problems to mine on this and other newsgroups but I still haven't been able to solve my problem... I have two tables 'Pupil' and 'SEN' which are related on a field called...
0
by: yma | last post by:
Hi, I have a web.config file that contains <httpHandlers> section that causes "cannot load file..." error. If I delete this section, it is OK. Why did vb.net add this section? It does not add...
1
by: ictheion | last post by:
Hi, I am having a problem utilizing ofstream*'s stored in a map (map<char, ofstream*>). I'm having basically the same problem with a map<char, boost::mutex*>. My code compiles, but at run-time I...
3
by: PCgeek | last post by:
sorry moved this over to javascript forum, didn't mean to post 2x! Hi guys, I'm trying to put the finishing touches on my website and could really use some help on this particular issue. My page...
0
by: Radu | last post by:
Hi. On the first page of my website the user selects one document which can be in either English or French. I store that choice in a class, and I can extract it with:...
1
by: google | last post by:
MySQL Server is version 4.1.7 (I know I should upgrade, and I will if that is the problem but it has been working fine for 1.5 years now and only recently has started to have this problem). Server...
4
by: dragony2000 | last post by:
I want to solve these questions using C# , Please !!! ************************************************************* 1- The factorial method is used frequently in probability problems. The...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.