Re: Help with <location> element in web.config

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On Jun 7, 11:04 pm, Mike <M...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi. I need to deny unauthenticated users from accessing an excel file
located within my webapp at SecurePages/ExcelFile1.xls. I've added the below
<location> element to my web.config, but it allows unauthenticated users to
access the file. What am I doing wrong? Cannot .xls files be protected this
way?

<location path="SecurePages/ExcelFile1.xls">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>

It would work with Windows Authentication only.

.



Relevant Pages

  • Re: Bypassing authentication
    ... means just that allow unauthenticated users to access the page ... Teemu Keiski ... I have established form authentication so every page on the site send ...
    (microsoft.public.dotnet.framework.aspnet)
  • authorization element in web.config
    ... I tried to deny access through the authorization element in web.config ... Itried to deny the unauthenticated users with? ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Problem mit Login-Control
    ... Habe Webapp mit VS 2008 erstellt. ... In die Seite login.aspx habe ich das Login-Control gezogen. ...
    (microsoft.public.de.german.entwickler.dotnet.asp)