Unable to add CustomTaskPane if not running debug RRS feed

  • Question

  • Hi,

    I got a problem that if the Excel Add-in is not start using debug mode, then the application will throw InvalidOperationException when adding CustomTaskPane in ThisAddIn_Startup

    this.CustomTaskPanes.Add(myUserControl1, "My Task Pane");


    Wednesday, July 25, 2012 7:57 AM


  • this means that there is a timing issue - debug is so slow that something has time to finish initalization - or maybe you have locals window shown and accessing some variables makes them 'initialized'. Hard to tell from single line of code.
    Wednesday, July 25, 2012 8:27 AM