Error: System.Web.HttpUnhandledException (0x80004005): Exception of type ‘System.Web.HttpUnhandledException’ was thrown. —> System.Web.HttpException (0x80072746): The remote host closed the connection. The error code is 0x80072746.
at System.Web.Hosting.ISAPIWorkerRequestInProcForIIS6.FlushCore(Byte[] status, Byte[] header, Int32 keepConnected, Int32 totalBodySize, Int32 numBodyFragments, IntPtr[] bodyFragments, Int32[] bodyFragmentLengths, Int32 doneWithSession, Int32 finalStatus, Boolean& async)
at System.Web.Hosting.ISAPIWorkerRequest.FlushCachedResponse(Boolean isFinal)
at System.Web.Hosting.ISAPIWorkerRequest.FlushResponse(Boolean finalFlush)
at System.Web.HttpResponse.Flush(Boolean finalFlush)
at System.Web.HttpResponse.Flush()
at Aspose.Cells.Workbook.Save(HttpResponse response, String fileName, ContentDisposition contentDisposition, SaveOptions saveOptions)
Code Snippet:
excel.Save(this.Response, “abc.xls”, ContentDisposition.Inline, new XlsSaveOptions(SaveFormat.Excel97To2003));
I’m using VS2010, Aspose.cells version is 5.1.3.1
Hi XU,
Please use the attached updated version Aspose.Cells5.2.0.2.zip. If you face any issue, please feel free to contact us with sample application and the template file to demonstrate the issue. This will help us to determine the root cause of the issue.
Thanks,
Hi,
After further analyzing your issue, we found, it is actually not an issue of Aspose.Cells. Please google the 0x80072746 error. We have found some links about this issue, please check them the following one:
http://forums.asp.net/p/990918/1306932.aspx
The issue occurs on our production site only when export, at our local there is no problem. I have read the post, but I still don’t know how to resolve this issue.