I was getting [UNKNOWN] Exception from HRESULT: 0x800A03EC--ERROR at this line in my Windows Server 2008 which is running Office 2003:
excelApp.Workbooks.Open(path, 0, false, 5, "", "", false,
Excel.XlPlatform.xlWindows, "",true, false, 0, true);
I had multiple applications running which generate excel reports. Most of them use
Excel._Application excelApp = new Excel.Application();
All of these applications failed except one application which had
ApplicationClass excelApp=new ApplicationClass();
So, I updated the first failed application to use ApplicationClass
instead of Excel.Application
. That solved the issue and I did not get 0x800A03EC
error anymore on the app.
But to my surprise all the rest of the failed applications are not getting this error anymore. There hasn't been any other change made to the server. I even reverted the change I made on the first application and even it is running fine without the error.
Has anyone experienced this issue? I see that this server does not have Microsoft Excel under DCOM Config in the component services. Is this somehow related?