次の操作を行っていると、Visual Studio 2005でファイル(noimg100.gif)を更新できません。
これがコードです、
String fileNotFoundPath = context.Server.MapPath("~/common/images/noimg100.gif");
context.Response.ContentType = "image/gif";
Image notFoundImage = Image.FromFile(fileNotFoundPath);
notFoundImage.Save(context.Response.OutputStream, ImageFormat.Gif);
私は何か間違ったことをしていますか、それとも最後に画像を破棄する必要がありますか?
編集:次のリンクを見つけました。ここには、私が使用した方法でImage.FromFileを使用しないように記載されています: http ://support.microsoft.com/kb/309482