PDA

View Full Version : Add in won't load



milop
02-19-2010, 02:05 PM
Hello.

I wrote an addin for MP 2010.

It works fine on several machines, but one machine simply will not load it.

It shows up in the COM-Addin list but it is unchecked. Checking it still does not load it. I've uninstalled/reinstalled, but same problem.

It doesn't appear that the OnConnection event is being raised because no trace data (I added debugging) is written.

Any ideas?

Thanks,

Mike

Eric Frost
02-19-2010, 02:23 PM
What's different about that machine? Is it running 64-bit?

Eric

milop
02-19-2010, 02:45 PM
What's different about that machine? Is it running 64-bit?

Eric

No, it's not 64-bit. Unfortunately I'm not in charge of the machines so I can't say what the differences are, if any (that matter).

Eric Frost
02-20-2010, 09:29 AM
Try re-installing the add-in? Also see if you have admin rights for that user on that machine.

Eric

milop
02-20-2010, 09:35 AM
Try re-installing the add-in? Also see if you have admin rights for that user on that machine.

Eric

Yeah, did that.

I did a registry check with RegEdit and found several references to my addin with different sources. Looks like the IT guys tried a few times to install it. They got the addin installer from different locations and tried to install it. I think it's a registry issue.

It's an old machine. Maybe they can wipe it and reinstall windows. Wishful thinking.

This type of problem is not an easy one to solve. I was just hoping that someone else had this issue and could tell me who the solved it.

Thanks again,

Mike

SatelliteSurfer
04-27-2010, 08:28 PM
I developed and tested an add-in on MapPoint 2004 using VS2008. A user also has MP 2004 and, after installing the add-in, is seeing this same issue. I thought the error might be in the OnConnection and so I placed code there to write to the Event Viewer (for success or failure) but nothing appeared in the user's Event Viewer.

If the add-in appears in the COM Add-In dialog, that indicates to me that it installed and registered correctly. That would point to the connection between the add-in DLL and MapPoint, and if OnConnection is not called, what would prevent that?

Joe

milop
04-28-2010, 03:57 PM
Hi, Sat. Thanks for responding.

As it turned out there was a mish-mosh of MS Office components installed.

Once the IT guys got Office squared away, everything worked.

Thanks,

Mike

Winwaed
04-28-2010, 09:55 PM
Were you using .NET by any chance?

It might be my imagination, but it seems more susceptible to this kind of problem.


Richard

milop
04-28-2010, 10:19 PM
Yes, I was.

Good guess.

Winwaed
04-29-2010, 07:20 AM
I've found "AddinExpress" helps - and fixed a recent problem this week for customer who was seeing very similar symptoms.

Yes it is a commercial system and it is designed to also work with Office, but it works with MapPoint too. Basically it implements and encapsulates the add-in interface and installer.


Richard

milop
04-29-2010, 07:49 AM
Thanks for the tip. I never heard of them before. I'll have a look.