The strange case of System.UnauthorizedAccessException when registering a Visual Studio add-in for COM Interop

May 22, 2008

Today I received a bug report for a new customer of my MZ-Tools add-in for Visual Studio (who purchased directly the product without trying the trial version) and the first thing that he encountered when running the setup was: System.UnauthorizedAccessException: Access to the registry key ‘HKEY_CLASSES_ROOT\Component Categories\{62C8FE65-4EBB-45e7-B440-6E39B2CDBF29}’ is denied. (alas, not the most wonderful first […]


MZ-Tools Articles Series: HOWTO: Add a filtered task with navigation to the Task List from a Visual Studio add-in

May 13, 2008

Another “task” that can be quite usual from a Visual Studio add-in is to add a task to the Task List or Error List. It happens in Visual Studio 2005/2008 that it is not as easy as it seems because of the following: – VS 2005/2008 uses a separate Error List window for errors, and the […]


MZ-Tools Articles Series: HOWTO: Execute a command by Guid and Id from a Visual Studio add-in

May 13, 2008

While most Visual Studio commands have a name and you can execute them using DTE.ExecuteCommand, there are cases where commands don’t have a name, just the Guid and Id that truly identifies them, For example, the command to filter the Task List of Visual Studio 2005/2008 by its combobox (my next article will be about this). […]


MZ-Tools Articles Series: HOWTO: Open the Web Browser and navigate to a page from a Visual Studio add-in or macro

May 12, 2008

A quite simple question (once you know the answer) is how to open the Web Browser of Visual Studio and navigate to some web site or page. I thought that the automation model didn’t provide such capability and was about to use a workaround, but it happens that it provides a method to do it. Just in case you weren’t aware […]