none
error: System.Runtime.InteropServices.COMException (0x800A03EC) RRS feed

  • Question

  • Hi,
    There is an error when I run the following code:

    private Microsoft.Office.Interop.Excel.Application _xl;
    ...
    _xl.Run("SetMsgQ",
                       msgq_name,
                       oOpt,
                       oOpt,
                       oOpt,
                       oOpt,
                       oOpt,
                       oOpt,
                       oOpt,
                       oOpt,
                       oOpt,
                       oOpt,
                       oOpt,
                       oOpt,
                       oOpt,
                       oOpt,
                       oOpt,
                       oOpt,
                       oOpt,
                       oOpt,
                       oOpt,
                       oOpt,
                       oOpt,
                       oOpt,
                       oOpt,
                       oOpt,
                       oOpt,
                       oOpt,
                       oOpt,
                       oOpt,
                       oOpt);


    error: System.Runtime.InteropServices.COMException (0x800A03EC): Exception from HRESULT: 0x800A03EC.

    I am using excel 2007 on an xp machine.

    Thanks in advance.

     

    Wednesday, May 4, 2011 5:29 PM

Answers

  • sometimes temporary files cause problems.  The temperary files can be cleared when you remove cookies and temporary files from the Internet Browser.  When you reloaded you application you may off cleared the temporary files from the IE temporary folder.
    jdweng
    Thursday, May 5, 2011 5:16 PM

All replies

  • The errors starting with an 0x8 are usually caused by file permissions or priledges. Macros may not be enabled.  Is it possible to do the equivalent operations in your C# program that is running in the workbook?

     

    From the name of the macro "SetMsgQ",it seems that the program is using some sort of semiphore to synchronize events from different processes.  Maybe you should sit down a figure a better way oforganizing the programs that are running.


    jdweng
    Thursday, May 5, 2011 9:56 AM
  • Thanks Joel

    If I change the windows service user from local system to my windows user account, it is working properly. Do not know what permission the local system is missing.

    However, after several reboot and reinstalling the application. It is working now even using local system.

     

    Thursday, May 5, 2011 4:16 PM
  • sometimes temporary files cause problems.  The temperary files can be cleared when you remove cookies and temporary files from the Internet Browser.  When you reloaded you application you may off cleared the temporary files from the IE temporary folder.
    jdweng
    Thursday, May 5, 2011 5:16 PM
  • Hi,

     

    I’m going to mark the above reply, which seems work on the issue, as answer. If you come back and have any further concern, please feel free to unmark it.

     

    Thanks for your understanding and support.


    Best Regards, Calvin Gao [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, May 11, 2011 6:29 AM
    Moderator