1
Automation Interface, Add-Ins and Tools / Re: Can't reliably use EA automation from ASP.Net
« on: November 24, 2008, 03:30:17 pm »
Managed to resolve this issue (though running multiple instances of EA within ASP.Net for simultaneous access to multiple repositories appears very unreliable). It turned out to be an oddity with profiles - such that even though we had logged on the server with our service account and provided a license, it was not finding that license when invoking the COM object.
The resolution was to use runas with the following command line:
runas /noprofile /user:<domainname\service account name> "ea.exe -Embedding"
At which point it prompts for the service accounts password, and then displays the EA license dialog - we added the apropriate license - clicked close and then killed off EA.exe from the task manager. After that everything seemed to work ok without an interactive user being logged into the machine.
The resolution was to use runas with the following command line:
runas /noprofile /user:<domainname\service account name> "ea.exe -Embedding"
At which point it prompts for the service accounts password, and then displays the EA license dialog - we added the apropriate license - clicked close and then killed off EA.exe from the task manager. After that everything seemed to work ok without an interactive user being logged into the machine.