how to give ASP permission to write to local hard drive?

  • Thread starter Thread starter Laszlo Szijarto
  • Start date Start date
L

Laszlo Szijarto

I've tried granting the ASPNET user "Full Control" permissions on
C:\[Directory]\ and have given the [code behind] assembly I'm running
"Medium Trust" on the local machine. Yet I still bomb out when I try to
write to a text file using a StreamWriter to C:\[Directory]\test.txt. Any
ideas? Yes, I set the FileMode and FileAccess properly.

Thank you in advance,
Laszlo
 
Are you using Windows authentication?
Also, if you are using Windows Server 2003, make sure that "Network Service"
has read/write privilege as well.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top