Excel error saving .xls file on web server 0x800a03ec

Question : Excel error saving .xls file on web server 0x800a03ec

Microsoft.Office.Interop.Excel error saving .xls file on web server (not no development PC)

error msg:
Microsoft Office Excel cannot open or save any more documents because there is not enough available memory or disk space.

” To make more memory available, close workbooks or programs you no longer need.

” To free disk space, delete files you no longer need from the disk you are saving to.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: Microsoft Office Excel cannot open or save any more documents because there is not enough available memory or disk space.

” To make more memory available, close workbooks or programs you no longer need.

” To free disk space, delete files you no longer need from the disk you are saving to.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[COMException (0x800a03ec): Microsoft Office Excel cannot open or save any more documents because there is not enough available memory or disk space.

” To make more memory available, close workbooks or programs you no longer need.

” To free disk space, delete files you no longer need from the disk you are saving to.]
Microsoft.Office.Interop.Excel.Workbooks.Add(Object Template) +0
Lister.MangelListe() +289
Lister.Button1_Click(Object sender, EventArgs e) +5
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102

Btw: freespace: 300-400 GB RAM: 1Gb


 

Solution : Excel error saving .xls file on web server 0x800a03ec
We had a somewhat similar issue with MS Word 2003, there was nothing wrong with the code, it was running fine on a dev PC, but once deployed to the web server (win 2003) we started to get "weird" errors.  Here is where we’ve found some help here: