I created a SmartTag for Office Excel XP and guess what... it didn't work. After triple checking the namespace, class name, strong name, guid, ... I googled the net. And here is the solution:
For VS .NET and .NET Fx 1.0, when you register for com-interop on the build page or regasm, it puts a full path to mscoree.dll at inprocserver32 like this: c:windowssystem32mscoree.dll. For VS 2003 and .NET Fx 1.1, there were some changes and instead of the full path, the registration services only put mscoree.dll.
Try manually at HKCRCLSID<GUID of com add-in>Inpocserver32 and change mscoree.dll to c:windowssystem32mscoree.dll Or create a setup project and set register property to vsdraCOM. Then install using the installer and you'll see inprocserver32 points to c:windowssystem32mscoree.dll. (Note that recompiling your project will make VS reset it to just "mscoree.dll" again, so stick with the installer.)
7:15:58 AM
|