Events in Extension AddIn do not work

Discussion created by ligtendag on Dec 23, 2009
Latest reply on Feb 5, 2010 by ligtendag
I created an extension Add-In for ArcMap in C# using the wizard in VS2008. The NewDocument and OpenDocument events are wired up on startup, but the assigned method is never called. Sometimes it works if I step through some statements after having set a breakpoint in the StartUp method and then press F5, but it never works without breakpoints or outside the debugger. I've attached a minimal sample application. The MessageBoxes never show up.

Wim Ligtendag