title: How do delete a files that was just uploaded to server and is still locked by the server?
body: <p>My system Uploads files to an IIS server and then i manipualate them and after finished doing every thing, i need to delete the original file, the problem is that the IIS "grabs" the file and i can't delete it, when i close the procces i can delete it manualy from the server, but until i close the procces i can't even do that...</p>
  
  <p>I'm using:<code>File.Delete(Server.MapPath(OriginalFileVirtualPath));</code> to delete the file.</p>
  
  <p>p.s. for now i'm using the .net server, not a full active IIS, but i don't think that the problem is over there...It even make some sence that when i upload a file to the sever, it won't let to delete it strate away, but i'm sure there is a work around...</p>
  
  <p>10x :-)</p>