c# - Error when creating Excel file from asp.net -


I am trying to create an excel file using C #. My code is working fine on Windows Server 2008, but I'm getting error in Windows Server 2012 R2, IIS Server 8.5, MS Office 2007 standard. This is telling me the error on the line

  oWB = (Excel._Workbook) (oXL.Workbooks.Add (Excel.XlWBatemplate.xlWBATWorksheet));   

Error: [COMException (0x800a03ec): Microsoft Office can not save or open more documents

You are trying to create an excel file

  • Using COM Automation from ASP.NET Application
  • This combination is:

    Microsoft currently does not have any unrestricted, non -International Client does not support the application of Microsoft Office applications from the client application, and does not support

    Thus, if it is in your Windows Server 2008 yet Gama, it was a mere coincidence. You're lucky this should not do anything on any production system.

    To create an Excel file from ASP.NET, use one of several other solutions:

    • ( Personally, I have a good experience, but none of the other solutions is OK.)

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -