cothedo Posted December 11, 2007 Share Posted December 11, 2007 I have helped build a basic content management system where you can upload and delete files. There is a special page where you can view and delete a file by clicking a button. The event of the button is:System.IO.File.Delete(Server.MapPath(...filename...))However, I get an error message saying "The porcess cannot acces the file (...filename & path...) because it is being used by another process."I just don't understand why I get this error to delete a jpg file. I have the rights to the directory the file is deleted from.Any help is appreciated. Link to comment Share on other sites More sharing options...
This topic is now archived and is closed to further replies.