N
news.microsoft.com
I need some help here guys.... i have been simply trying to delete a file
from the webserver using asp.net
using the following code.
System.IO.File.Delete(FullPath);
however the error message i get is the following
The process cannot access the file
"e:\inetpub\wwwroot\client_dev\brands\Product_images\1450.jpg" because it is
being used by another process.
What other process could be doing this? it is happening both on our dev box
AND up at our host...
in code i do not have any references to the file at all.... so there couldnt
be any locks that i am causing intentionally....
what else could lock a file.... and if so how can i remove the lock so i can
DELETE the file..
from the webserver using asp.net
using the following code.
System.IO.File.Delete(FullPath);
however the error message i get is the following
The process cannot access the file
"e:\inetpub\wwwroot\client_dev\brands\Product_images\1450.jpg" because it is
being used by another process.
What other process could be doing this? it is happening both on our dev box
AND up at our host...
in code i do not have any references to the file at all.... so there couldnt
be any locks that i am causing intentionally....
what else could lock a file.... and if so how can i remove the lock so i can
DELETE the file..