I am trying to deny access to folder in asp.net server, i put this web.config file inside the folder and still, I have access to filed in it, what shoul I do?
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.web>
<authorization>
<deny users ="*" />
</authorization>
</system.web>
</configuration>
Other problem that I had is to create new directory inside the folder I am trying to deny using the server dynamicly, how to do it? There is a way create a folder in asp.net server without ftp? I tried to use
Directory.CreateDirectory(Server.MapPath("~") + "newFolder");
but without success..