Can't make forms authentication for non-ASPX files work



In my web app, I want to secure not only .aspx files, but also .htm files.
From what I've read, I have to jump through some hoops to protect the .htm
files.

In IIS, I right clicked on the default web site and clicked on the ISAPI
Filters tab. I added ".htm" and chose
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" as the
executable.

I then added the following in the Web.config within the system.web tags:

<httpHandlers>
<add path="*.htm" verb="*" type="System.Web.StaticFileHandler"
validate="true" />
</httpHandlers>

But it didn't work. I have no idea if what I did was right, but obviously
it wasn't. Can someone please help.

Thanks,
Ron


.



Relevant Pages

  • Cant make forms authentication for non-ASPX files work
    ... Can't 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.languages.csharp)
  • RE: Web application and publishing
    ... an ASP.NET web application into IIS web application folder,correct? ... Microsoft MSDN Online Support Lead ... So perhaps I should deployed my web app on a web site, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: VS2008 HTTP 403 Help!!
    ... Highlighting the default.aspx before debug start or explicitly setting Default.aspx to the start page works. ... That's an alleged workaround which doesn't work, not a solution to the bug. ... Seems like the web app project does not default to the ONLY aspx in a project during debug run. ... That error is caused by a virtual directory not being configured as an application in IIS. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: VS2008 HTTP 403 Help!!
    ... the web app project does not default to the ONLY aspx in a project ... Highlighting the default.aspx before debug start or explicitly setting ... That error is caused by a virtual directory not being configured as an ... Check in your IIS Manager, and make sure you created a virtual ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Microsoft.Jet.OLEDB.4.0 provider is not registered on the local machine
    ... server on your side, I think it is possibly due to the admin scripts are ... By default, IIS 7 ... Microsoft MSDN Online Support Lead ... you can try temporarily switch the ASP.NET web app to 32 bit ...
    (microsoft.public.dotnet.framework.webservices)