Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: nrocha on October 01, 2007, 01:43:47 am

Title: Automation and ASP.NET
Post by: nrocha 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.
Title: Re: Automation and ASP.NET
Post by: gtschech 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
Title: Re: Automation and ASP.NET
Post by: dkkoenig 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