Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Tehila1 on October 01, 2014, 09:12:15 pm

Title: EA Addin Configuration Error
Post by: Tehila1 on October 01, 2014, 09:12:15 pm
I create an addin for EA v10.
When I launch it, I get the following error:  


Could not load file or assembly System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\n  
Calling assembly : System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
LOG: This bind starts in default load context.

LOG: Using application configuration file: C:\PROGRA~1\SPARXS~1\EA\EA.exe.Config

LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config.

LOG: Post-policy reference: System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\r\nLOG: The same bind was seen before, and was failed with hr = 0x80070002.

I guess it is related to the config file in ProgramFiles\Sparx Systems folder. Its value is:  
  
Code: [Select]
<configuration>
  <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v2.0.50727"/>
    <supportedRuntime version="v4.0"/>
  </startup>
</configuration>
 
  
Any ideas?
Title: Re:  EA Addin Configuration Error
Post by: Ian Mitchell on October 09, 2014, 09:05:06 pm
Have you looked at Geert's excellent tutorial? http://bellekens.com/2011/01/29/tutorial-create-your-first-c-enterprise-architect-addin-in-10-minutes/
I think he talks about this.