如题:从SQL导出到Excel,有时候成功,有时不成功.自己做了一个日志文件,发现错误信息如下:
2006-11-08 01:56:50
System.IO.IOException: 该进程无法访问文件“d:\temp_base.xls”,因为该文件正由另一进程使用。
   at System.IO.__Error.WinIOError(Int32 errorCode, String str)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at System.Web.HttpResponse.WriteFile(String filename, Boolean readIntoMemory)
   at System.Web.HttpResponse.WriteFile(String filename)
   at HouseMS.Web.js.jsShow.btnExport_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\housems\web\js\jsshow.aspx.cs:line 730
各位高手帮看看,马上就要交活了.(文件temp_base.xls并没有打开)