Re: ASP.Net Web.config security question



For some *very* annoying reason reason the security settings only work when
an aspx page is requested. The security settings are completely ignored
when an HTML file is requested. Even when I applied the security settings
specifically to the html file!

"ASP.Net programmer" <me@xxxxxxxx> wrote in news:42944b94$0$153
$e4fe514c@xxxxxxxxxxxxxx:

> I have a weird problem securing my ASP.Net application. I know it's
> probably my fault, but I just don't get it to work.
>
> - Anonymous access is disabled on the IIS Server.
> - Integrated Windows security is enabled on the IIS Server.
>
> Web.config (excerpt, slightly edited):
> <?xml version="1.0" encoding="utf-8" ?>
> <configuration>
>
> <location path="admin">
> <system.web>
> <authorization>
> <allow users="Domain\admin_account"/>
> <deny users="*" />
> </authorization>
> </system.web>
> </location>
>
> <system.web>
> <authentication mode="Windows" />
> <authorization>
> <allow roles="Domain\Domain Users" />
> <deny users="*" />
> </authorization>
> </system.web>
> </configuration>
>
> The problem is: I (as a normal user) can access the normal pages as
> expected, but also the admin directory.
>
> I enabled trace and the only status-code for a request is 200. I know
> there also should be a 400 (or 401) for the authentication, but it just
> isn't there.
> The LOGON_USER property of the trace shows my account.
>
> My question is: what did I forget?

.



Relevant Pages

  • Re: ASP.Net Web.config security question
    ... > For some *very* annoying reason reason the security settings only work ... > when an HTML file is requested. ... >> I enabled trace and the only status-code for a request is 200. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: URLDownloadToFile
    ... request is blocked by windows firewall or security settings ... request is blocked by third party firewall or antispyware software ... This posting is provided "AS IS" with no warranties, and confers no ...
    (microsoft.public.win32.programmer.networks)
  • Permissions Error
    ... I am able to run my Windows app from a local drive. ... Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0 ... it recommends I tweak the .Net Configuration wizard to adjust the security settings. ...
    (microsoft.public.dotnet.security)
  • browser problem
    ... the internet I get this message: ... browser when you request a web page. ... but was unable to do it from my home computer. ... change something in my security settings? ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: WinXP SP2 security
    ... >>> opening ... >>> an HTML file which I hold on my comp. ... Change the security settings in Internet Options. ... Conor ...
    (uk.comp.misc)