Delete Image
<p>I am using asp.net C#. I am saving image file in the folder and deleting it.When i am deleteing it gives error "The process cannot access the file 'C:\Inetpub\wwwroot\Admin\Temp\visible_Jul-13-2009_035606.png' because it is being used by another process"</p>

<p>Please Help</p>

<p>Code:</p>

<pre><code>fupAddImage.PostedFile.SaveAs(Server.MapPath("Temp") + @"\" + tempFilename);
File.Delete(Server.MapPath("Temp") + @"\" + tempFilename);
</code></pre>
