i have on a code written for asp.net server to add a few words to a text file, but i'm not able to execute this code. i get an error "the application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file."
how i can give permission for the entire directory (it's a private directory, secured by password) ,this is what my web.config file contain:
<remove name="LocalSqlServer" />
<add name="LocalSqlServer" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" />
<customErrors mode="Off" />