none
Office Interop - Adding Outlook Region Form RRS feed

  • Question

  • 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..


    Wednesday, January 11, 2012 12:45 PM

All replies

  • Hi dopache,

     

    Thanks for posting in the MSDN Forum.

     

    Would you please give me a description for your form region, tell me which controls you used in the form region and tell me the set in the create region form wizard.

     

    Have a good day,

     

    Tom


    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us
    Friday, January 13, 2012 3:42 AM
    Moderator
  • I'm having the same problem. I just added a "To" field and a "Subject" field. I put it as a seperate form region standard message class is IPM.Note. When I import the .ofs file to office 2012 I get the error

    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 '{04598FC8-866C-11CF-AB7C-00AA00C08FCF}' failed due to the following error: Interface not registered (Exception from HRESULT: 0X80040155).

    If anyone came across this problem and solved it , pls help :)

     
    Friday, August 17, 2012 8:25 AM
  • Did anyone ever solve this???  Having same issue with no help so far..
    • Proposed as answer by Hmerchen Friday, August 28, 2015 4:14 PM
    Tuesday, August 25, 2015 7:14 PM