468,483 Members | 2,654 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,483 developers. It's quick & easy.

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.XlFileFormat.xlXMLSpreadsheet, Type.Missing, Type.Missing, false, false, Excel.XlSaveAsAccessMode.xlNoChange, 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 xlWorkbookNormal, 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
Jan 27 '10 #1
1 14861
tlhintoq
3,525 Expert 2GB
Check the advice in this thread for similar issue
http://bytes.com/topic/net/answers/8...xe0434f4d-exit
My first guess is you are using methods in one version of the framework that don't exist on the machine producing the error.
Jan 29 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by e-lores | last post: by
1 post views Thread by Walter Andosen | last post: by
1 post views Thread by Boomessh | last post: by
reply views Thread by tmg181 | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.