Results 1 to 11 of 11

Thread: [RESOLVED] VSTO Plugins Being Disabled During Debug

Threaded View

  1. #1

    Thread Starter
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,110

    Resolved [RESOLVED] VSTO Plugins Being Disabled During Debug

    I haven't delved into this one well enough, but then again, I'm not quite sure where to look.

    I'm working on developing a VSTO plugin. Word is auto-disabling it. I have to go into the Options and re-enable it, after which it works fine a far as I can see, except that every time I try to test something, Word objects that it's running into problems with the plugin and asks me if I want to disable it.

    The thing is that this plugin is as generic as any can get. The plugin is only adding a button onto a menu. Everything else happens when the button is plugged. That means that the ONLY code prior to the button press is the boilerplate methods that MS added to the project (which have no bodies), and this one:

    Code:
     Protected Overrides Function CreateRibbonExtensibilityObject() As Microsoft.Office.Core.IRibbonExtensibility
    
            Return Globals.Factory.GetRibbonFactory().CreateRibbonManager(New Microsoft.Office.Tools.Ribbon.IRibbonExtension() {New LaunchButton()})
    
        End Function
    The launch button has no custom constructor, nor anything in it's Load method, only in it's Click method, so there really is no code that could be causing the plugin to have trouble.

    I found one thing that suggested that it might be throwing an exception when there is no document present, so I changed that, but that didn't quite improve the situation (and some people might find it annoying).

    Does anybody have any suggestions as to what I should look at next?
    Last edited by Shaggy Hiker; Nov 1st, 2021 at 11:58 AM.
    My usual boring signature: Nothing

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width