Hello everyone.
My problem is this: I have two websites that looks in the same SQL Database. I use a table to store image records (filename, description, etc). My users can upload the images in one site and the administrator can view, edit or delete (hopefully) on the other site.
But when I'm trying to delete the file I oftenly get an exception "can not delete file. it is being used by another process".
Is there anything I can do to delete the file? How can I check if the file is being used?
In order to delete the file, I use a "System.IO.File.Delete("imagefilename")" command.
Thanks in advance.
...
Go to the complete details ...