Windows PowerShell scripts to register a .NET-based add-in for a COM-based host application

March 27, 2013

Before Visual Studio 2005 introduced XML-based registration for add-ins with an .AddIn file (which enabled X-Copy deployment), add-ins for Microsoft applications required two steps to be registered: To register the add-in dll as ActiveX (COM) component To register the add-in dll as add-in for the host application through some registry entries This is still true […]


MZ-Tools Articles Series updated

March 26, 2013

Many of the MZ-Tools Articles that I have written in the last years seemed a bit outdated because each one has a header like this: Author: Carlos J. Quintero (Microsoft MVP) Applies to: Microsoft Visual Studio .NET 2002 Date: March 2010 Microsoft Visual Studio .NET 2003   Microsoft Visual Studio 2005 Where the date and […]


The strange case of "LoaderLock was detected" with a COM add-in written in .NET

March 17, 2013

Since some days ago, I was getting the following error when closing Visual Basic 6.0 from the Visual Studio debugger (I am developing a .NET-based version of MZ-Tools for the 64-bit VBA editor of Office, and VB6 will get it too): LoaderLock was detected Message: Attempting managed execution inside OS Loader lock. Do not attempt […]


MZ-Tools Articles Series: BUG: DTE.ActiveDocument.ActiveWindow does not return the active document window if toolwindow active

March 17, 2013

My first small article this year is to document this bug of Visual Studio 2005, 2008, 2010 and 2012: BUG: DTE.ActiveDocument.ActiveWindow does not return the active document window if toolwindow active http://www.mztools.com/articles/2013/MZ2013001.aspx Which I have just reported to Microsoft Connect: Document.ActiveWindow does not return always the active window https://connect.microsoft.com/VisualStudio/feedback/details/781522/document-activewindow-does-not-return-always-the-active-window and that is a variation of […]


The strange case of "Set property ‘System.Windows.ResourceDictionary.DeferrableContent’ threw an exception."

March 9, 2013

In the recent days, each time that I clicked the New Project button of the Visual Studio 2012 IDE, I got this exception: “Set property ‘System.Windows.ResourceDictionary.DeferrableContent’ threw an exception.” I have been clueless about this problem until today. When a problem happens in Visual Studio, the recommended approach is to launch it in “Safe mode”, […]