Book a Demo

Author Topic: Add-in problem with Enterprise Architect  (Read 3887 times)

byoernn

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Add-in problem with Enterprise Architect
« on: October 18, 2012, 07:34:51 pm »
Guten Tag,

ich folgte diesem tutorial:
http://geertbellekens.wordpress.com/2011/01/29/tutorial-create-your-first-c-enterprise-architect-addin-in-10-minut ,

um mein erstes EA Add-in zu erstellen.
Als ich das dll bilden wollte kam die Fehlermeldung:

Error    1    Cannot register assembly "d:\users\bjoernnast\documents\visual studio 2010\Projects\MyAddin\MyAddin\bin\Release\MyAddin.dll" - access denied. Please make sure you're running the application as administrator. Access to the registry key 'HKEY_CLASSES_ROOT\MyAddin.MyAddinClass' is denied.    MyAddin

Als ich dann als Admin weiterarbeitet schien alles zu funktionieren, jedoch wurde das Add-in dann am ende nicht im Enterprise Architerct angezeigt, welchen ich wieder als user gestartet habe.

Ich vermute ein Problem bei der COM registrierung, jedoch weis ich nicht genug darüber um genauere schlussfolgerungen machen zu können.

Kann mir jemand dabei helfen?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Add-in problem with Enterprise Architect
« Reply #1 on: October 18, 2012, 09:16:44 pm »
@Geert:

followed your tutorial (first link).

When generating the dll the mentioned error popped up.

When working as admin it seemed to work. But when working as regular user the addin did not show up in EA.
« Last Edit: October 18, 2012, 09:21:29 pm by qwerty »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Add-in problem with Enterprise Architect
« Reply #2 on: October 18, 2012, 10:21:06 pm »
Wouldn't that depend on the Add-in key in the registry then?
If you add the key to HKCU, logged in as admin, and then login as another user, that other user won't have the add-in key anymore.

Since a while now you can also add the key to the HKLM. If you add it there it should be there for all users.

Geert

PS. I know, I should probably update the article... :-[

byoernn

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Add-in problem with Enterprise Architect
« Reply #3 on: October 18, 2012, 11:14:23 pm »
thank you  :)
its working