我有一个问题,我想使用 asp.net 在目录中保存一个 html 文件。但是当我尝试这样做时,我得到了一个安全异常,如下所示。
7/10/2012 12:03:54 AM,http://www.teddytank.com/admin/AddNewsLetter.aspx?
nid=3,System.IO.IOException: The process cannot access the
file 'D:\hosting\7837152\html\ne\newsletter06_07_2012_T_37.html' because it is being
used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileInfo.Delete()
at Admin_AddNewsLetter.Submit_Click(Object sender, EventArgs e)
7/10/2012 12:04:45 AM,http://www.teddytank.com/admin/AddNewsLetter.aspx?
nid=3,System.IO.IOException: The process cannot access the file '
D:\hosting\7837152\html\ne\newsletter06_07_2012_T_37.html' because it is being used by
another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileInfo.Delete()
at Admin_AddNewsLetter.Submit_Click(Object sender, EventArgs e)
请帮忙。提前谢谢。