Visual Studio 2010 SP1, KB2645410 and Add-Ins

30 jun 2012

This article is actually quite short. It's just a reminder on how to work around this nasty problem with Visual Studio 2010 when you install KB2645410.

The problem manifests itself when you open Performance Explorer > New Performance Session:

Could not load file or assembly 'Microsoft.VisualStudio.PerformanceTools.CounterInfo.dll' or one of its dependencies. The Specified module could not be found.

When you browse to the

C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Performance Tools

folder you actually discover the file is there.

As mentioned by the submitter in http://social.msdn.microsoft.com/Forums/en-US/vstsprofiler/thread/a6487155-980c-4bc8-82de-2fe588fdf37f, the problem is that with the new security upgrade Visual Studio no longer passes its privileges to the add-ins.

The simple solution is to give Everyone permissions to Read and Execute on the “Performance Tools” folder and all its content.

To do that you should be administrator, browse to

C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\

right click “Performance tools”, then select Properties > Security > Advanced > Change permissions…

Then click Add, enter “everyone” and press Enter.

In the next window, near the top of the list, select:

  • Traverse folder / execute file
  • List folder / read data
  • Read attributes
  • Read extended attributes

and then, near the end, select:

  • Read permissions

and you're near set. Click OK, select “Replace all child object permissions with inheritable permissions from this object”, press OK and confirm at the security request (if you did not alter anything else, there is no problem in propagating the “everyone read execute” new permission). Click OK through all other dialogs.

Have fun =)

 
 
vs2010_profiler_error.txt · Last modified: 2012/06/30 17:43 by Alex Mazzariol
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki
Drupal Garland Theme for Dokuwiki