Trouble getting a COM Add-in to load on a machine without VS-2005

Trouble getting a COM Add-in to load on a machine without VS-2005

Post by Q2FybG9zIF » Fri, 07 Jul 2006 04:22:01


I'm new to developing managed (C#) Add-ins for Excel and new to Visual Studio
2005 and very new to developing Add-ins in VS-2005.

That said I've been trying to put together a little test case COM Add-in.
I've followed the basic recipe as as detailed in ".Net Development for
Microsoft Office" using Visual Studio and have gotten a simple COM add-in to
work in Excel 2003 on my computer without a hitch. When I try to send said
add-in to others it doesn't load up for them (though it should). Furthermore
when they check their Excel instance's COM Add-in dialog, they see that Excel
attempted to load the addin but failed (Location "mscoree.dll", message "Not
Loaded, Runtime error occured during the loading of the COM add-in"). This is
strange though because (1) it works without a hitch on my machine and (2) the
first thing to execute in the program is a MessageBox.Show in the Connect
constructor.

Given the MessageBox and my previous experience with developing in VS2005
(with C++), my suspiscion is that there is some dll that should be deployed
that isn't done so automatically. Any thoughts on what the problem is? What
am I missing?

Please help...
 
 
 

Trouble getting a COM Add-in to load on a machine without VS-2005

Post by Ken Wilso » Fri, 14 Jul 2006 15:10:17

On Wed, 5 Jul 2006 12:22:01 -0700, Carlos Valdivia



Make sure the target machines have the redistributable .NET 2.0
framework on them.

--
Ken Wilson
Seeking viable IT employment in Victoria, BC
Feel free to contact me if you have any leads.