Hi;
I have tried both:
<add verb="*" path="html-image\*.jpg" type="BitmapView"/>
and
<add verb="*" path="html-image\*" type="BitmapView"/>
But neither works. In both cases I just get file cannot be found and it
never calls my code.
If I set
<add verb="*" path="html-image.*" type="BitmapView"/>
That works - but it is not what I need.
Any ideas?
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htmIn IIS, there is a wildcard application map. Do that on your virtual
directory. Then, you should be a step closer to what you want...
David Thielen wrote:
> Hi;
> I have tried both:
> <add verb="*" path="html-image\*.jpg" type="BitmapView"/>
> and
> <add verb="*" path="html-image\*" type="BitmapView"/>
> But neither works. In both cases I just get file cannot be found and it
> never calls my code.
> If I set
> <add verb="*" path="html-image.*" type="BitmapView"/>
> That works - but it is not what I need.
> Any ideas?
> --
> thanks - dave
> david_at_windward_dot_net
> http://www.windwardreports.com
> Cubicle Wars - http://www.windwardreports.com/film.htm
Er... and if the file isn't real make sure you turn OFF file existence
verification in IIS for the mapping.
David Thielen wrote:
> Hi;
> I have tried both:
> <add verb="*" path="html-image\*.jpg" type="BitmapView"/>
> and
> <add verb="*" path="html-image\*" type="BitmapView"/>
> But neither works. In both cases I just get file cannot be found and it
> never calls my code.
> If I set
> <add verb="*" path="html-image.*" type="BitmapView"/>
> That works - but it is not what I need.
> Any ideas?
> --
> thanks - dave
> david_at_windward_dot_net
> http://www.windwardreports.com
> Cubicle Wars - http://www.windwardreports.com/film.htm
Hello Dave,
As for the httphandler configuration, as far as I knew, it supports limited
wildcard mapping format. So far based on my test, as long as you've
configured the IIS extension mapping to redirect the certain document
extension to ASP.NET isapi.dll, the following wildcard format httphandler
path is supported:
<add path="test.*" verb="*" type="PPTHandler, __code"/>
<add path="*.test" verb="*" type="PPTHandler, __code"/>
<add path="*asm.bsd" verb="*" type="PPTHandler, __code"></add>
<add path="asm*.bsd" verb="*" type="PPTHandler, __code"/>
As for the test path you provided, why did you put an "\" char in the path,
is it necessary for your application?
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
I have to return bitmaps that I have stored in a database. So my plan was
that the filenames woul be html-file\1234.jpg, html-file\1235.jpg, etc. The
html-file directory would say it's a bitmap in the database and then the fil
e
name would be it's PK in the database.
Is there another way to do this? Because it looks like I can't use the
directory for the path. This is presently on the VS2005 integrated server bu
t
it needs to work on IIS also.
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
"Steven Cheng[MSFT]" wrote:
> Hello Dave,
> As for the httphandler configuration, as far as I knew, it supports limite
d
> wildcard mapping format. So far based on my test, as long as you've
> configured the IIS extension mapping to redirect the certain document
> extension to ASP.NET isapi.dll, the following wildcard format httphandler
> path is supported:
> <add path="test.*" verb="*" type="PPTHandler, __code"/>
> <add path="*.test" verb="*" type="PPTHandler, __code"/>
> <add path="*asm.bsd" verb="*" type="PPTHandler, __code"></add>
> <add path="asm*.bsd" verb="*" type="PPTHandler, __code"/>
> As for the test path you provided, why did you put an "\" char in the path
,
> is it necessary for your application?
>
> Sincerely,
> Steven Cheng
> Microsoft MSDN Online Support Lead
>
> This posting is provided "AS IS" with no warranties, and confers no rights
.
>
Hi Dave,
I would suggest you avoid using any particular characters (like the
backward slash ) in your custom httphandler's request url, you can use some
normal separaor char such as "-" to separate different part in your custom
handler's url and then parse them in your httphandler's code. e.g.
http://servername/appname/databasename-filename1.rpt
Also, directory path is not allowed as content in url path directly. The
correct way is to use them as a querystring parameter. I'm afraid there is
no other means for this so far.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
Lines: 40
Thread-Topic: Set IHttpHandler for all files in a directory?
thread-index: AcbrwiA3mpAIgerrRbaY5XH7yI7/5g==
X-WBNR-Posting-Host: 207.174.201.190
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830
NNTP-Posting-Host: TK2MSFTNGXA01.phx.gbl 10.40.2.250
Xref: leafnode.mcse.ms microsoft.public.dotnet.framework.aspnet:23986
ok - thanks
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
"Steven Cheng[MSFT]" wrote:
> Hi Dave,
> I would suggest you avoid using any particular characters (like the
> backward slash ) in your custom httphandler's request url, you can use som
e
> normal separaor char such as "-" to separate different part in your custo
m
> handler's url and then parse them in your httphandler's code. e.g.
> http://servername/appname/databasename-filename1.rpt
> Also, directory path is not allowed as content in url path directly. The
> correct way is to use them as a querystring parameter. I'm afraid there i
s
> no other means for this so far.
>
> Sincerely,
> Steven Cheng
> Microsoft MSDN Online Support Lead
>
> This posting is provided "AS IS" with no warranties, and confers no rights
.
>
>
Thursday, March 22, 2012
Set IHttpHandler for all files in a directory?
Labels:
asp,
bitmapview,
bothltadd,
directory,
files,
gtandltadd,
gtbut,
hii,
html-image,
ihttphandler,
jpg,
net,
path,
type,
verb
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment