Error compiling automation add in

Jan 24, 2013 at 11:06 PM

Hello everyone,

I'm trying to compile an Automation add in for PowerPoint and the compiler spits out the following error:

Referenced type is defined in managed component, which is imported from a type library that could not be loaded because it was not registered (type: 'NetOffice.OfficeApi.IRibbonExtensibility'; component: 'D:\lbelloq\documents\visual studio 2010\Projects\SlideControlAddin\SlideControlAddin\bin\Release\OfficeApi.dll')

This is using VB 2010 Express with the last version of NetOffice.

How can I fix it?

Thanks in advance,

Léster

Developer
Jan 25, 2013 at 10:05 AM

IRibbonExtensibility is defined in Microsoft Office Object Library (mso.dll). Do you have Office 2007/2010/2013 installed on the machine where compilation fails?

Jan 25, 2013 at 10:58 AM

I had Office 2007 and 2013 in my dev machine, and uninstalled Office 2013 a couple of weeks ago. Should I try repairing Office 2007? Maybe uninstalling Office 2013 screwed up mso.dll registering.

Developer
Jan 25, 2013 at 11:21 AM
Edited Jan 25, 2013 at 11:25 AM

Does Office 2007 work well after Office 2013 uninstalling?

Do you see IRibbonExtensibility in VBA Object Browser?

Jan 26, 2013 at 12:09 AM

I see it, its only member is GetCustomUI().