Book a Demo

Author Topic: Automation and ASP.NET  (Read 3463 times)

nrocha

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Automation and ASP.NET
« on: October 01, 2007, 01:43:47 am »
Hi,

I'm trying use EA automation from an ASP.NET 2.0 page.
I've tried two methods for launching EA:
Code: [Select]
Object o = Server.CreateObject("EA.Project");
and
Code: [Select]
EA.Repository r = new EA.RepositoryClass();

With both methods I see the EA.exe process appearing but doing nothing (no CPU usage). After a certain amount of time, the connection process is aborted with the following exception:
Quote
Retrieving the COM class factory for component with CLSID {8667FE5E-6D96-400A-AF0A-15C29F94DFCD} failed due to the following error: 80080005.


I've put the ASPNET user as capable of launching and acessing EA (through the configuration of the EA.App DCOM component).

Has anyone managed to do this? What am I doing wrong? What am I missing?

Any help would be extremely welcome...

Regards.

gtschech

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Automation and ASP.NET
« Reply #1 on: October 11, 2007, 09:32:18 pm »
nrocha,

the error code suggests that you do not have permission to use the COM interface from within your asp.net app (xxxx0005 almost always means "access denied").

Maybe the account your web app is running under (the app pool identity) does not hav sufficient rights to create COM objects.

You can check that by temporarily (!) replacing the app pool account with an account that has administrative rights on your computer...

Guenter

dkkoenig

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Automation and ASP.NET
« Reply #2 on: October 16, 2007, 02:16:25 am »
u must config the Dcom

DCOM config -> EA.APP -> config

same as this
http://consumer.installshield.com/kb.asp?id=q108324
« Last Edit: October 16, 2007, 02:20:09 am by dkkoenig »