C# Windows Service COM exception 80080005 when starting application
问题 I have created a Windows Service that try to start an application (in this case CATIA). I use the following code: private Application GetApplicationObject(string ProgId) { Application AppObject = null; //Try to get allready open instance of the Application try { AppObject = (Application)Marshal.GetActiveObject(ProgId); } catch { //Create a new instance of the Application instead AppObject = (Application)Activator.CreateInstance(Type.GetTypeFromProgID(ProgId)); } return AppObject; } I get the