This project has moved and is read-only. For the latest updates, please go here.

Error compiling automation add in

Jan 25, 2013 at 12:06 AM

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,


Jan 25, 2013 at 11: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 11: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.

Jan 25, 2013 at 12:21 PM
Edited Jan 25, 2013 at 12:25 PM

Does Office 2007 work well after Office 2013 uninstalling?

Do you see IRibbonExtensibility in VBA Object Browser?

Jan 26, 2013 at 1:09 AM

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