When I try to delete a file, i got this error :
The process cannot access the file ' ' because it is being used by another process.
Here is my code :
   var file = Request.Files[0];
    file.SaveAs(path);
    
    ** Some tasks
    
    System.IO.File.Delete(path);
Any idea how can i resolve it ?
 
    