RE: web.config

From: ranganh (ranganh_at_discussions.microsoft.com)
Date: 06/28/04


Date: Mon, 28 Jun 2004 02:09:02 -0700

Dear Olap,

The htm files are not served by asp.net and are served by IIS itself. To enable security for that page, go to your application's virtual directory.

Go to Properties, Configuration and in the list, click add to add the .htm extension and set the same properties as that of the one's for .aspx which is being listed in the grid.

Once you are done with that, the htm files will be served by asp.net and the security would be enforced.

hope it helps.

"olap" wrote:

> do you know why if i've got an entry in the web.config like this:
>
> <location path="Reportistica/Cruscotto">
> <system.web>
> <authorization>
> <allow users="Domain\MArio"/>
> <deny users="*"/>
> </authorization>
> </system.web>
> </location>
>
> it works
>
> instead if i've got an entry like this:
>
>
> <location path="Reportistica/Cruscotto/OLAP/Page.htm">
> <system.web>
> <authorization>
> <allow users="Domain\MArio"/>
> <deny users="*"/>
> </authorization>
> </system.web>
> </location>
>
> it doesn't work, and everyone can access that page?
>
>
> thx
>
>
>



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)
  • Re: Need .htm to go to both ASP.NET and for files
    ... that is a file on disk that should be returned by IIS. ... We also have htm files that are stored in the database. ... And for these we have to set it in IIS that .htm files are passes to ASP.NET ... need - htm files returned by both HttpHandlers and as files on disk. ...
    (microsoft.public.dotnet.framework.aspnet)
  • 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)