Book a Demo

Author Topic: Add-in not registering  (Read 7437 times)

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Add-in not registering
« on: August 21, 2008, 12:38:10 am »
Hi All

I have written an Add-in using c# and Visual Studio 2008, the target build is .NET 3.5

All works well under Visual Studio, however when I try to deploy to a client's machine, the registration of the add-in dll fails.

I have followed the details in EA user Guide 7.1 page 1335 section 16.5.1.1.2 which states that the .dll is stored somewhere and then registered using regsvr32, but I receive the following error:

Add-in.ddl was loaded but the DllRegisterServer entry point was not found

The file cannot be registered

I have set the Visual Studio build options to Register for COM interop and the configuration is Active (Debug)

What am I missing or doing wrong?

I always get the error no matter where the .dll is stored.

Cheers

Phil
Models are great!
Correct models are even greater!

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Add-in not registering
« Reply #1 on: August 21, 2008, 01:55:40 am »
Hi Phil,

I think you are using the wrong registration tool. See this post for details.

David
No, you can't have it!

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: Add-in not registering
« Reply #2 on: August 21, 2008, 04:39:34 am »
Try regasm.exe.

Visual Studio does not create entry points for regsvr32 (no support for self registration as it used to be called in the old COM days), but .Net runtime (or SDK) includes regasm.exe as a tool to write COM keys for .Net assemblies to the registry.

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Re: Add-in not registering
« Reply #3 on: August 22, 2008, 06:25:27 pm »
Cheers Guys! Worked a treat!
Models are great!
Correct models are even greater!