Book a Demo

Author Topic: HTMLReport application can not run as a service?  (Read 3506 times)

Kezia

  • EA User
  • **
  • Posts: 33
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
HTMLReport application can not run as a service?
« on: September 24, 2007, 12:27:07 am »
Hi all,

I have a problem when executing my .Net application for generating HTML Report using EA automation and it's run as windows service.

My application is a console application. It works fine when running on console.

Here is the scenario:
My application is executed by Java application that run on services wrapper. The service wrapper is also Java application (wrapper.tanukisoftware.org).

I was thinking that was security poblem, so I set default and limit of COM security to allow the user,who runs the service, has an access to the COM. But it still didn't work.

Then I was guessing that was a license key problem (The license key doesn't exist on the cuurent user directory - Document and Settings\<User>\Application Data\Sparx System\EA). But, unfortunately, even I changed the user to administrator, it still didn't work.

After investigating for a couple days, I found that instantiating Repository object took a long time. There  might be repository object create a process which cause the instantiating process took a long time and made the application time out when it ran as a service. After the process timed out, the System Event Viewer generate this error:

The server {67F4E0FA-46A7-4255-B084-69A9433D08C3} did not register with DCOM within the required timeout.


And the application throw an error:
Retrieving the COM class factory for component with CLSID {67F4E0FA-46A7-4255-B084-69A9433D08C3} failed due to the following error: 80080005.

Help me please.. Not sure that was Windows problem or EA's problem (might be EA is not designed to run as a service). Just try all ways to solve this problem.

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: HTMLReport application can not run as a servic
« Reply #1 on: September 24, 2007, 03:02:32 pm »
Last I knew on the subject, EA Automation would not work running as a service.  Not sure of the exact reason however.  I am not aware of anyone sucessfully running EA Automation from a windows service.

NB: When instantiating a new EA.Repository object, it needs to start an 'EA.exe' process to interface with.  It would appear that perhaps it is failing to start this process.

Eric Johannsen

  • EA User
  • **
  • Posts: 43
  • Karma: +0/-0
  • Model Driven Business[ch0174]
    • View Profile
Re: HTMLReport application can not run as a servic
« Reply #2 on: May 09, 2008, 02:49:18 am »
Canonic successfully uses the EA COM interface from a service in our Cadeo product.

It is important to set security through DCOMCNFG to explicitly set the account used when creating and activating the EA object.

If anyone needs a Word document with screenshots showing how to do this, please use the contact form on my company's website to get in touch with me:

http://canoniccorp.com

Eric