I have a .NET program that uses the EA API to export to HTML:
var r = new Repository();
r.OpenFile(eapPath);
...
Interactively this works fine
However I want to run this from a Jenkins job.
Our Jenkins runs as a service (on Windows 7) under a regular user account.
The behavior is as follows:
- The .NET program hangs in the OpenFile call.
- An ea.exe is started (with -Embedding) in the session 0 with the same user account.
- The ea.exe takes 134MB memory whereas an interactively started ea.exe -Embedding only takes 104MB.
- It does not make a visible difference, whether I provide a valid or invalid file name to the OpenFile call.
I have found many mentions of similar problems with services.
The most complete instructions were at:
http://community.sparxsystems.com/tutorials/556-28running-enterprise-architect-on-a-serverI have followed the instructions as good as possible but it did not make any difference.
Also I found mention of the registry being different in session 0. However i have verified that Jenkins sees the license entries in the registry.
I have also enabled the "Interactive Services Display" service, to make sure there are no Dialogs.
How do I resolve this problem?
Does EA create any logs, so I can determine if it even sees any COM calls?
Regards,
Michael Bosch