I'm trying to add a Region Form(created in Outlook 2010) to Visual Studio Outlook 2010 addin project. Saving the form as an .ofs file works fine. But when I try to add it to the project in Visual Studio I got the following error in the Create Region Form
wizard.
unable to cast com object of type 'System.__ComObject'
to interface type
'Microsoft.Vbe.Interop.Forms.UserForm'
This operation failed because the QueryInterface call
on the COM component for the interface with IID "......" failed
due to the following error: Interface not registered
(Exception from HRESULT:0x80040155)
Any help will be appreciated..