Book a Demo

Author Topic: Task scheduler problem  (Read 4312 times)

konrad.p

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Task scheduler problem
« on: February 03, 2012, 10:16:27 pm »
Hello!

I wrote a C# program using Automation Interface. I tried to run it using Task Scheduler with enabled "Run whether user is logged on or not". While executing "Repository repository = new Repository();" program freezes for about a minute and then throws an exception:
System.Runtime.InteropServices.COMException (0x80080005): Retrieving the COM class factory for component with CLSID {67F4E0FA-46A7-4255-B084-69A9433D08C3} failed with HRESULT: 0x80080005(Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE))).

I run this task under admin account with enabled all COM permissions also program doesn't crash when executed manually. I use EA 8.0 and Windows Server 2008 R2 64-bit. Any help would be appreciated.
« Last Edit: February 03, 2012, 11:16:57 pm by konrad1234 »

smendonc

  • EA User
  • **
  • Posts: 148
  • Karma: +5/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Task scheduler problem
« Reply #1 on: February 12, 2012, 04:36:35 am »
EA requires an interactive session.  The link explains a work around and provides more information.

http://community.sparxsystems.com/tutorials/code-engineering/running-enterprise-architect-server

Stan.

konrad.p

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Task scheduler problem
« Reply #2 on: February 14, 2012, 10:33:47 pm »
"EA.App" is not listed under "DCOM Config" on my machine.