locked
Scheduled task and COM access problem RRS feed

  • General discussion

  • One of my applications must start another program which acts as a COM object server.  When I run this application as a scheduled task, and the the task is marked as "Run whether user is logged in or not", I get the following error message:

    Retrieving the COM class factory for component with CLSID {...} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).

    I do not get this error when the task is marked "Run only when logged on".

    The executable that serves the COM object is accessible to "Everyone", "SYSTEM", and myself, according to its file security properties.  And the scheduled task is also marked "Run with highest privileges".

    Any idea why this is happening?

    Monday, December 12, 2016 4:12 PM