Book a Demo

Author Topic: EA problem in IIS service  (Read 5551 times)

Knut Paulsen

  • EA User
  • **
  • Posts: 82
  • Karma: +1/-0
    • View Profile
EA problem in IIS service
« on: June 23, 2015, 08:44:28 pm »
Hi guys,
hope you can help me with this one :-)

I have a service running under control of IIS in which I try to create an EA Repository object. I get the below error.  Anybody have any experience using EA this way? I do stuff before the error occur, so the service as such is working. It basically fails when I try to create any EA object.

Any help will be appreciated :-)

Line causing the error: EA.Repository repo = new EA.Repository();


Error:
An unhandled exception of type 'System.ServiceModel.FaultException`1' occurred in mscorlib.dll

Additional information: Retrieving the COM class factory for component with CLSID {67F4E0FA-46A7-4255-B084-69A9433D08C3} failed due to the following error: 80040153 Invalid value for registry (Exception from HRESULT: 0x80040153 (REGDB_E_INVALIDVALUE)).

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: EA problem in IIS service
« Reply #1 on: June 23, 2015, 10:00:20 pm »
The problem is that you can't run EA without an actual user logged in (or it is difficult at least).
The only source that can help you with this topic is the whitepaper from LieberLieber: EA as an unattended Windows Service on Windows Server 2008R2 and higher

Good luck.

Geert

Knut Paulsen

  • EA User
  • **
  • Posts: 82
  • Karma: +1/-0
    • View Profile
Re: EA problem in IIS service
« Reply #2 on: June 25, 2015, 06:20:41 pm »
Thank you Geert,

will take a look

br
Knut

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: EA problem in IIS service
« Reply #3 on: June 25, 2015, 09:09:03 pm »
Hi Knut,

Can you let me know how you get on - I've had the same problem for a while. I've tried following the advice in the white paper. I can start a local copy of sparx via IIS, but if I try to connect to a remote server (db or cloud connection) the process seems to hang ... I'm using a named user connection to the database which works when I'm logged onto the server and connect through to the db or cloud connection. So I'm guessing there is something missing in the environment when IIS connection pool user tried to connect.

Welcome any thought / suggestions / tips to debug from anyone out there ...

In an ideal world my company would put up the cash for a couple of days consultancy with Geert / LieberLieber - but I'm not likely to get the budget :-(....

« Last Edit: June 27, 2015, 03:48:06 am by openit »