Error while creating excel instance using Microsoft.Office.Interop.Excel.Application() RRS feed

  • Question

  • Getting the following error while opening the excel file.

    System.Runtime.InteropServices.COMExpection: Exception from HRESULT: 0x800A03EC

    Have tried all the below:

    -- Network Service Permission given “C:\Windows\SysWOW64\config\systemprofile\Desktop”

    -- Permission given “C:\Windows\Temp”

    -- Visual Studio 2010 Tools for Office Runtime. installed

    Any help appreciated.

    Sunday, November 11, 2012 7:19 AM

All replies

  • You don't provide enough information:

    1) VErsion of Excel involved

    2) Version of Visual Studio

    3) Type of VSTO customization: Excel Workbook? Add-in?

    4) The line of code that causes the error and a description of the context in which it is executing

    Cindy Meister, VSTO/Word MVP, my blog

    Sunday, November 11, 2012 8:41 AM