Hello everyone
I have a FileUpload control in my ASP.NET application, and I want to save the users files in a private folder. When I say "private folder", I mean that in my web.config I have the following for every directory in the application:
<authentication mode="Forms">
<forms loginUrl="Logon.aspx" name=".ASPXFORMSAUTH">
</forms>
</authentication>
<authorization>
<allow users="?"/>
</authorization>
and I have this for the "private directory":
<location path="UsersCV">
<system.web>
<authorization>
<deny users="*"/>
</authorization>
</system.web>
</location>
So, I want this folder to be not accesible for anyone, except for my app. When I try to upload a file with the FileUpload control, I get System.UnauthorizedAccessException. We have IIS6 and Windows server 2003.
QUESTION: How can my app access to that private folder?
Thank you very much in advance