none
Problem with 'oWB = oXL.Workbooks.Add' and error code 0x800A03EC RRS feed

  • Question

  • We are running our service on this server:

    Microsoft Windows 2012 R2 (64-bit)

    Microsoft Office Professional Plus 2010 (version 14.0.6112.5000, 32 bit),

    When using the command 'oWB = oXL.Workbooks.Add', we get the following error in the log file:

    Exception: System.IO.DirectoryNotFoundException: Could not find a part of the path 'c:\MailserviceNetFEK\'.

       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

       at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)

       at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)

       at System.IO.StreamWriter..ctor(String path)”

    We also have error logging via email, and there we get the following error:

    “System.Runtime.InteropServices.COMException (0x800A03EC): Microsoft 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.

       at Microsoft.Office.Interop.Excel.Workbooks.Add(Object Template)

       at MailServiceNetService2009V2.MailServiceImpl.SkapaKursEnkatPaEttMoment(Int32 iKursUtvarderingID, String cPath)”

    But, we have verified that we have enough memory and disc space for the user running the service. We have also ruled out that this has anything to do with rights management.

    Does anyone know what 0x800A03EC might indicate? And what might cause 'oWB = oXL.Workbooks.Add' to crash?

    The command and service works on other computers,  but not our server. We have trired to install PIA 2010 Redistr but it did not help.

    Thanks!

    Regards

    Daniel

    • Moved by George123345 Wednesday, September 2, 2015 1:43 AM
    Tuesday, September 1, 2015 9:48 AM

All replies

  • Hi,

    This is the forum to discuss questions and feedback for Microsoft Excel, I'll move your question to the MSDN forum for Excel

    http://social.msdn.microsoft.com/Forums/en-US/home?forum=exceldev&filter=alltypes&sort=lastpostdesc

    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.

    George Zhao
    TechNet Community Support


    It's recommended to download and install Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office programs.

    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.
    Wednesday, September 2, 2015 1:43 AM