Author Topic: EA_MenuClick: Can't find matching ID  (Read 3936 times)

MikiNanuk

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
EA_MenuClick: Can't find matching ID
« on: September 17, 2006, 09:28:50 am »
Hi all,

I wrote a simple add-in using C# and .NET 1.1.  It simply adds a new right-click menu and sub-menu to the TreeView and, when that menu is selected, shows a simple dialog box.

All works well in the development environment.  However, when I create a setup package and install it on the same box, I get an error testing the add-in.

First I unregister the debug assembly (regasm /unregister), then run the setup package (installs the release assembly, creates an appropriate registry entry).

When I start EA, the add-in is listed and there is no error.  The right-click menu is also there.  However, the moment I select it, I get the error:

EA_MenuClick: Can't find matching ID

If I return to the debug environment, everything work again.

Any ideas?

Thanks,

Eric

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: EA_MenuClick: Can't find matching ID
« Reply #1 on: September 17, 2006, 04:21:28 pm »
[Just a guess here...]

Any chance you have a directory problem. I'm thinking that when you switched from debug to production, .Net changed the build directory. Perhaps your registration from the debug process is pointing to the old directory, and not finding your new .dll file.
No, you can't have it!

MikiNanuk

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: EA_MenuClick: Can't find matching ID
« Reply #2 on: September 18, 2006, 12:02:02 pm »
Thanks for your help.

I don't think it was a directory error for two reasons:

1. I unregistered my add-in with regasm /unregister in my debug directory
2. The add-in was found and properly showed the new menu option.  It just choked on processing the menu option.

Any other thoughts?

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: EA_MenuClick: Can't find matching ID
« Reply #3 on: September 18, 2006, 03:26:14 pm »
Eric,

Perhaps you need to reset the EA main menu. Other add-in problems often respond well to this.

Note that this will clear any customizations you've made to the menu and (I think) the toolbars and toolbox panels. You'll have to redo them after this procedure.

From the EA main menu choose Tools / Customize. Select the Menu tab and click the Reset button. Just to be sure, try exiting and restarting EA afterwards.

Please let us know if this does the trick.

David
No, you can't have it!