Deny access to a folder

  • Thread starter Thread starter Onur Bozkurt
  • Start date Start date
O

Onur Bozkurt

How can I deny access to a folder when authorization mode is none. I have
xml files and I don't want then to be seen. When I restrict it from IIS, I
can't read the files from codebehind.
 
Why would you want to restrict it from IIS...?
Depending on userName = [machine | system] attribute in processModel section
in machine.config..
Explicitly remove the Everyone group and give permissions to whom ever you
want reading the files including IIS..
IIS will use either ASPNET if userName = "machine" or the local system
account if userName = "system"..
Set the file permissions accordingly.. and that should work...
 
Back
Top