COM-Ausnahme 80040154 Beim erstellen einer Excel-Anwendung

Ich versuche zu laufen, ich meine Anwendung auf einem server funktioniert nicht und wird nicht über Office installiert ist.

using EXCEL = Microsoft.Office.Interop.Excel;
...
EXCEL.Application app = new EXCEL.Application();//Exception thrown here

Der code funktioniert Prima auf meinem eigenen system, aber auf dem server gibt es die folgende Ausnahme:

Unhandled Exception: System.Runtime.InteropServices.COMException: 
Retrieving the COM class factory for component with CLSID {...} failed
due to the following error: 80040154 Class not registered
(Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

beide Systeme sind 32bit, und ich habe Sie kopiert die excel-Interop-dll, weiter zu Anwendung exe. Ich habe auch installiert O2010PIA.

alle führen?

InformationsquelleAutor Bizhan | 2012-12-01

Schreibe einen Kommentar