Can't make forms authentication for non-ASPX files work
- From: "Ronald S. Cook" <rcook@xxxxxxxxxxxx>
- Date: Mon, 10 Apr 2006 20:22:40 -0600
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 .htmfiles.
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
.
- Follow-Ups:
- Re: Can't make forms authentication for non-ASPX files work
- From: Edwin Knoppert
- Re: Can't make forms authentication for non-ASPX files work
- Prev by Date: Re: When ASP.NET Application expires?
- Next by Date: Re: How to recover source code from a dll that's compiled in debug release
- Previous by thread: organization chart in asp.net
- Next by thread: Re: Can't make forms authentication for non-ASPX files work
- Index(es):
Relevant Pages
|