VS2005 Shared Add-ins and Office (Publisher) 2007

E

Ed Bennett

Does anyone know why a shared add-in built in VS05 would fail to start?

I've built a Publisher add-in in VB05 using exactly the same methods as
work for Publisher 2003/VS03, but when starting it in debug mode, it
does not fire the OnConnection event (or any other event, for that
matter). Attempting to add it through Tools > Add-ins > Add returns the
message that the DLL 'is not an Office add-in' (suggesting that Connect
isn't firing as the add-in is silently not loading).

I have the Trust Center set to enable all add-ins and VBA code (as a
troubleshooting step, not as a normal environment).

At first VS had made a reference to the Office11 object library instead
of the Office12 one, but I've corrected that and the same issue occurs.
At the time, I had both Pub11 and Pub12 installed, but have since
removed Pub11 to try and troubleshoot.

I've installed KB908002 (although Patrick Schmid says at
http://pschmid.net/blog/category/office-2007/office-2007-developer/ that
it isn't necessary) to no avail.

Publisher is unsupported by VSTO, so I have to use a shared add-in (or
dig out VS6 and rewrite all my code).

I've successfully developed a console application on this system against
Publisher, suggesting that PIAs aren't the issue.

Can anyone offer any advice? Thanks!
 
E

Ed Bennett

Ed said:
Does anyone know why a shared add-in built in VS05 would fail to start?

I eventually resolved this by creating a new solution, and copying and
pasting everything from the old one to the new one. No idea what was in
the original that was causing it to barf; I'm just glad to have finally
got this working so I can test it properly.

Hope this is of some use to someone else.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top