C#, Excel Workbook, SaveAs ( Exception from HRESULT: 0x800A03EC )

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fadi980
    New Member
    • Jan 2010
    • 1

    C#, Excel Workbook, SaveAs ( Exception from HRESULT: 0x800A03EC )

    Hi,

    I'm exporting a data set into excel file from an ASP.NET application (VS 2008).
    On my PC, i got everything working just fine. but on my client server i got the error ( Exception from HRESULT: 0x800A03EC ), and i found that the problem is in this call:

    wb.SaveAs(FPath , Excel.XlFileFor mat.xlXMLSpread sheet, Type.Missing, Type.Missing, false, false, Excel.XlSaveAsA ccessMode.xlNoC hange, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);

    wb is a workbook. FPath is the path to where i want to save the file, and i assigned user "everyone" a full control permission on this location.

    on my PC i have WinXP, IIS 5. on client server it's Win server 2008, IIS 7.

    i tried changing file format, i tried xlWorkbookNorma l, xlExcel12 .. but still the same error.

    can any one please help me to know what could be different from what i have on my PC.

    Thanks in advance
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    Check the advice in this thread for similar issue

    My first guess is you are using methods in one version of the framework that don't exist on the machine producing the error.

    Comment

    Working...