Book a Demo

Author Topic: Problems transfering 32-Bit .NET Plugins to 64-Bit Windows?  (Read 5722 times)

Schludi

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Problems transfering 32-Bit .NET Plugins to 64-Bit Windows?
« on: March 01, 2018, 10:29:42 pm »
Hello!

I just have installed Enterprise Architect 13.5 on a new 64 Bit machine and tried to register an older self-made EA Plugin.

The problem is, that it is not appearing in EA 13.5 64-Bit.

I have done the following:

1.) Copied all files to C:\Users\Public\EAAddins\MyAddIn
2.) Created a new registry key entry under HKCU\Software\Sparx Systems\EAAddins, with the appropriate value:
EADOORSLinkSync: EADOORSLinkSync.EADOORSLinkSyncAddinClass
3.) I went to the directory with an Command Prompt as Admistrator and registred it with
C:\WINDOWS\Microsoft.NET\Framework\v4.0\RegAsm.exe "C\Program Files\MyCompany\EAAddin\EAAddin.dll" /codebase

The problem is, that it isn't appearing in EA. Is this because of 64-Bit? Have i exchange EAFramework.dll or s.th. like this?

This is my directory listing:
Code: [Select]
Verzeichnis von C:\Users\Public\EAAddins\LinkSync

09.05.2017  11:59    <DIR>          .
09.05.2017  11:59    <DIR>          ..
23.08.2016  07:24             4.608 DOORSCOMLib.dll
23.08.2016  07:24           192.512 EAAddinFramework.dll
28.06.2016  09:53           223.903 EAAddinFramework.xml
11.12.2017  10:52           413.696 EADOORSLinkSync.dll
11.12.2017  10:52           140.800 EADOORSLinkSync.pdb
07.12.2017  08:59             7.196 EADOORSLinkSync.tlb
23.08.2016  07:24             5.221 EADOORSLinkSync.wxs
09.05.2017  14:41                 0 EA_to_DOORS_linkage.txt
22.08.2016  14:15           320.429 exportedLinks.txt
27.02.2018  11:13             4.827 export_links_main.dxl
19.06.2017  13:59             8.779 handle_EASync_module.dxl
09.05.2017  14:41            18.206 import_links_main.dxl
14.12.2015  11:01           303.104 Interop.EA.dll
24.06.2016  12:39            14.848 Interop.MSScriptControl.dll
23.08.2017  06:58             5.632 ListViewComboBoxControlLibrary.dll
23.08.2017  06:58            13.824 ListViewComboBoxControlLibrary.pdb
24.06.2016  10:56             9.728 SchemaBuilderFramework.dll
24.06.2016  10:56            13.824 SchemaBuilderFramework.pdb
09.07.2013  10:04           180.904 System.Net.Http.dll
02.11.2015  00:02           165.469 System.Net.Http.xml
23.08.2016  07:24            61.440 UMLToolingFramework.dll
              21 Datei(en),      2.108.950 Bytes
               2 Verzeichnis(se), 104.096.935.936 Bytes frei

C:\Users\Public\EAAddins\LinkSync>
« Last Edit: March 01, 2018, 10:34:29 pm by Schludi »

Arshad

  • EA User
  • **
  • Posts: 292
  • Karma: +21/-1
    • View Profile
Re: Problems transfering 32-Bit .NET Plugins to 64-Bit Windows?
« Reply #1 on: March 01, 2018, 10:44:59 pm »

Is this because of 64-Bit? Have i exchange EAFramework.dll or s.th. like this?
 

No not because of 64 bit windows.
Might be some other issue .
Post the error code which you get in Manage Addin tab



Arshad

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Problems transfering 32-Bit .NET Plugins to 64-Bit Windows?
« Reply #2 on: March 02, 2018, 12:40:02 am »
Do you have an installer for the add-in?

There might be something wrong with the registration, or you might be missing a library on your new system.

It usually doesn't have much to do with 32/64 bit.

Geert


Schludi

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Problems transfering 32-Bit .NET Plugins to 64-Bit Windows?
« Reply #3 on: March 02, 2018, 12:49:59 am »
Hi!

I have an installer but I am currently trying to upload it manually because I cannot find the WIX-Project.

I have looked at the error messages and loaded an external plugin that checks EA DLL Installations.



I have registered and it is appearing but I guess there is something wrong in the registry?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Problems transfering 32-Bit .NET Plugins to 64-Bit Windows?
« Reply #4 on: March 02, 2018, 01:53:31 am »
Your classes don't seem to be registered properly for COM interop.

Geert

Schludi

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Problems transfering 32-Bit .NET Plugins to 64-Bit Windows?
« Reply #5 on: March 02, 2018, 03:01:10 am »
Hi thx for your help!

I edited all Registry Keys by hand (the CodeBase Key, which points to the DLL was missing) and even the assembly info (the version) like on the Development System.

Now it works. I do not know why RegAsm hasn't worked correctly.

For the next time i hope i got it much easier :/

I only noticed that RegAsm complaint about unsigned assemblies
« Last Edit: March 02, 2018, 03:04:48 am by Schludi »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Problems transfering 32-Bit .NET Plugins to 64-Bit Windows?
« Reply #6 on: March 02, 2018, 05:00:55 am »
I only noticed that RegAsm complaint about unsigned assemblies

I think I remember it doing that all the time, but it still used to work.
But it's a long time since I used regasm.

Geert