Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Chris S on November 04, 2011, 08:11:43 am

Title: Generate HTML via Scheduled Task
Post by: Chris S 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
Title: Re: Generate HTML via Scheduled Task
Post by: Geert Bellekens 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


Title: Re: Generate HTML via Scheduled Task
Post by: smendonc 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.
Title: Re: Generate HTML via Scheduled Task
Post by: Tim Twe 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.