i'm struggling to resolve this issue since yesterday.
I have a site (framework 4.0), hosted in a Windows Server with IIS 7.5 in Classic Mode. Unfortunately i can't changed this to Integrated Mode.
I need to protect files contained in a folder.
Only authenticated user (with forms authentication) have to access to them. anonymous user not.
I tried to protect folder in this way in webconfig:
<location path="Riservata/Files">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
But i still access to these files directly.
Someone can help me?