Strange exception when automating excel

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.
 
S

SvenC

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top