Re: Need .htm to go to both ASP.NET and for files



On Mar 16, 9:33 pm, David Thielen <thie...@xxxxxxxxxxxxx> wrote:
Hi;

This appears to be a bit of a problem. Our portal's help system is composed
of .htm files. So if the requested file is application/help/datasource.htm,
that is a file on disk that should be returned by IIS.

We also have htm files (reports) that are stored in the database. Those are
returned using:
<httpHandlers>
<add verb="*" path="report-view.*" type="ReportView"/>
</httpHandlers>

And for these we have to set it in IIS that .htm files are passes to ASP.NET
and do not require that the file exists.

However, when we set this in IIS, then the help.htm files are not returned.
How can we set it that if an httpHandler handles it. it returns the .htm file
but otherwise it looks on disk for the file.

It seems to me there must be a way to do this because this must be a common
need - htm files returned by both HttpHandlers and as files on disk.


Try to add

<add path="/application/help/*.htm" verb="*"
type="System.Web.StaticFileHandler" />

.



Relevant Pages

  • Re: IIS6 caching
    ... there is no other script ... mapping being done for HTM files. ... > generated by IIS in user mode. ... > packaged for QFE. ...
    (microsoft.public.inetserver.iis)
  • Re: refuses to start .htm files
    ... > when ZoneAlarm is loaded, htm files are refused, but otherwise, ... In both cases, ASP files are accepted... ... The IIS server is also connected with the ADSL modem to internet. ... >>the property IP of the Web Site tab in that IP), IIS refuses to start any ...
    (microsoft.public.inetserver.iis)
  • Re: refuses to start .htm files
    ... when ZoneAlarm is loaded, htm files are refused, but otherwise, ... In both cases, ASP files are accepted... ... The IIS server is also connected with the ADSL modem to internet. ... > the property IP of the Web Site tab in that IP), IIS refuses to start any ...
    (microsoft.public.inetserver.iis)
  • Cant make forms authentication for non-ASPX files work
    ... In my web app, I want to secure not only .aspx files, but also .htm files. ... In IIS, I right clicked on the default web site and clicked on the ISAPI ...
    (microsoft.public.dotnet.framework.aspnet)