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

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

September 1st, 2015 5:49am

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

Free Windows Admin Tool Kit Click here and download it now
September 1st, 2015 9:44pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics