Strange exception when automating excel

  • Thread starter Thread starter Christof Nordiek
  • Start date Start date
C

Christof Nordiek

I have programmend an application in C# that uses excel automation to create
an excelsheet. This worked fine, but now, on one machine, a message pop's up
saying: "The application or DLL C:\WINDOWS\system32\msi.dll is not a valid
windows image.". After that a COMException is thrown with hresult =
800a03ec. The exception is thrown, when Workbooks.Add is called.

Reparing the excel-installation doesn't seem to help.
 
Hi Christof,

Christof Nordiek said:
I have programmend an application in C# that uses excel automation to
create an excelsheet. This worked fine, but now, on one machine, a message
pop's up saying: "The application or DLL C:\WINDOWS\system32\msi.dll is
not a valid windows image.". After that a COMException is thrown with
hresult = 800a03ec. The exception is thrown, when Workbooks.Add is called.

Did you check if msi.dll is corrupted or missing?
Use for example depends.exe to open msi.dll and see if it can be opened.

Are you using 32-bit or 64-bit windows?
 
Back
Top