File access Permission Denied

  • Thread starter Thread starter Tina
  • Start date Start date
T

Tina

I have given myMachineName\ASP.NET full control on my
c:\inetpub\wwwroot\myapp\Data directory. But when I attempt a
file.delete(path) I am getting an access denied. I am able to write new
files to that directory but unable to get this delete to work.

Anyone know why?

Thanks ,
T
 
I suspect one or more processes are still holding a lock on the data file
when you're trying to delete it.
 
If you are reading these files in your app somewhere, make sure that all
handles are closed, otherwords you call Close() on the stream objects.
 

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