Click here to Skip to main content
15,896,338 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

The Excel file is generated through ASP.NET C# Web application. But getting error while opening Excel file with Windows server 2008 R2 and at local Windows XP it is running fine.
Error is "System.Runtime.InteropServices.COMException (0x800A03EC): Exception from HRESULT: 0x800A03EC" we have set same culture settings at IIS server also and we have given permissions also. We are able to save Excel file there but not able to open it.

We are opening the file using the code below:

xlWorkBook = xlApp.Workbooks.Open(strExcelPath, 0, true, 5, "", "", false, Excel.XlPlatform.xlWindows, "",false, false, 0, true, false, false);

I request please help us with this issue.

Thanks
Mahesh..
Posted
Updated 22-Nov-10 0:22am
v2

Fortunately I found this one in CP

System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x800A03EC[^]

[Edit]
Possibly you need to set permissons. Here you go Click[^]
[/Edit]
 
Share this answer
 
v2
Comments
Dalek Dave 22-Nov-10 6:32am    
Good call.
Mahesh Medishetty 22-Nov-10 6:39am    
Hi,

Thanks for the replay. We successfully open the same excel file in our local mechine. But unable to open that excel sheet at server. I request please help me out from this issue.

Thanks
Mahesh.
thatraja 22-Nov-10 6:53am    
check my updated answer
Please go through the following link...seems some DCOM config related issue

http://social.msdn.microsoft.com/Forums/en/Vsexpressvb/thread/b6388275-b295-4e55-8c25-6d8788eac1ca[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900