Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Tobin_Harris on October 19, 2004, 11:17:09 pm

Title: More .NET Woes
Post by: Tobin_Harris on October 19, 2004, 11:17:09 pm
Hi there,

After upgrading to latest build 4.10.739, our .NET addin has suddenly stopped working.

The symptom of this is that when you launch EA, a messagebox pops up saying "There was an error loading the add-in 'Blahblah(Blah.blah)' remove it from the list?"

I've now tried rebuilding against the latest EA dlls, but am still having problems. More specifically, despite  implementing the Addin interface, I get a compile error saying that the Connect method is not implemented, but it is! So, I also tried inheriting from the AddinClass class instead, which will compile but I then get the "Error loading addin" popup when launching EA.

Any help much appreciated.I didn't see any mention of breaking changes in the docs or the realease list.

Tobin


Title: Re: More .NET Woes
Post by: charge on October 25, 2004, 01:54:20 am
The likely reason for this error is that they have improved the interface to .net, and are now providing a strongly typed assembly: Interop.EA.dll.
 
You should de-reference EA in your VS project, and reference Interop.EA.dll from \program files\sparx systems\ea.
 
The interop file you compile with should also be included with your installations.