Cannot create instance of 'Ribbon'
        Posted  
        
            by user354433
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user354433
        
        
        
        Published on 2010-05-31T09:08:19Z
        Indexed on 
            2010/05/31
            9:13 UTC
        
        
        Read the original article
        Hit count: 305
        
I'm having trouble using the Ribbon control from the Office 2007 RibbonControlsLibrary.dll.
It works for most people but not for me. The fault I get is:
Cannot create instance of 'Ribbon' defined in assembly 'RibbonControlsLibrary, Version=3.5.31016.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Exception has been thrown by the target of an invocation
The problem is probably not with the code since it works for other people. Its the Ribbon class thats causing the problem. If I remove any references to the Ribbon class but keep the references to RibbonWindow I don't get any exceptions.
Any help appreciated
© Stack Overflow or respective owner