Author Topic: Generate HTML via Scheduled Task  (Read 3780 times)

Chris S

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Generate HTML via Scheduled Task
« on: November 04, 2011, 08:11:43 am »
I have written a program in .NET that going through all of my projects and generates HTML versions for all projects.  It works great when I click on the program and run it.

Now, I set it up as a scheduled task to run on a daily basis.  However, it fails to generate HTML for every project with the following error:

Retrieving the COM class factory for component with CLSID {67F4E0FA-46A7-4255-B084-69A9433D08C3} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)).

At first, I thought it was a permissions error.  So, I setup the scheduled task to run the executable under my name.  However, I am still getting the same error.

Any idea on how I can resolve the issue?

Thanks,
Chris

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Generate HTML via Scheduled Task
« Reply #1 on: November 04, 2011, 05:40:11 pm »
Chris,

Where exactly in the code does it fail?

Still looks like some kind of user related issue. Have you looked in the registry for {67F4E0FA-46A7-4255-B084-69A9433D08C3}?
Maybe that entry only exists for your current user... or something like that.

Geert



smendonc

  • EA User
  • **
  • Posts: 148
  • Karma: +5/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Generate HTML via Scheduled Task
« Reply #2 on: November 05, 2011, 08:14:13 am »
You might also be running into the issue of EA requiring an interactive session.  The scheduled task (set to run under you login) requires you to be logged into an active Windows session to run.  The task will fail if there is no interactive session open.

Somewhere on this forum there was a post about running EA as a service and not requiring an interactive session.  This might help but I haven't tried it.

Stan.

Tim Twe

  • EA User
  • **
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: Generate HTML via Scheduled Task
« Reply #3 on: November 08, 2011, 10:55:07 pm »
I've been having the same problem.  Will let you know if I figure out a solution.