title: The file is in use by IIS Express Asp.Net
body: <p>I've an image in asp.net application and I resize and convert it for several times , but sometimes it's used by IIS Express process.
  and I can't resize or convert it.
  How to free IIS Express handle or how to bypass it?
  is engaging IIS Express before publishing normal or I should exactly handle such situation?</p>
  
  <p>this piece of code is for replacing two images:</p>
  
  <pre><code>public static void Replace(string OldPicture, Stream NewPicture)
  {
     Bitmap OldImage = new Bitmap(OldPicture); 
     ImageFormat format = OldImage.RawFormat;
     Bitmap NewImage = new Bitmap(NewPicture);
     OldImage.Dispose();
     NewImage.Save(OldPicture, format);
     NewImage.Dispose();
     return;
  }
  </code></pre>
  
  <p>Oldpicture is in use while saving via NewImage.save </p>