5 Replies Latest reply on Nov 26, 2014 11:20 AM by Dirk Becker 

    Opening InDesign programmatically fails




      i'm using the Indesign-Library ("Resources for Visual Basic.tlb") in C#.


      The following code should programmatically open InDesign, and works fine on one Computer:

      InDesign.Application gApp = (InDesign.Application)this.COMCreateObject("InDesign.Application");


      However on another Computer the exactly same code doesn't open InDesign programmatically, as we get the following error-message:

      Die COM-Klassenfactory für die Komponente mit CLSID {18207523-3CEA-4212-A829-14F7F5A3546B} konnte aufgrund des folgenden Fehlers nicht abgerufen werden: 80080005 Starten des Servers fehlgeschlagen (Ausnahme von HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE))


      That should be the equivalent translated error-message:

      Retrieving the COM class factory for component with CLSID {18207523-3CEA-4212-A829-14F7F5A3546B} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)).