Bookmark and Share

Sunday, November 07, 2010

Howto enable performance profiling on IIS and VS2008

If you are using VS2008/2010 and you need to profile your code you can have the warning:

The profiling environment for ConsoleApplication2 is not set up correctly. Use vsperfclrenv.cmd to setup environment variables. Continue anyway?

The solution is to execute the vsperfclrenv.cmd located under:

C:\Program Files\Microsoft Visual Studio 9.0\Team Tools\Performance Tools>vsperfclrenv.cmd /globalsampleon

using the globalsampleon option.

2 comments:

  1. why your message is for ConsoleApplication, while u'r saying about IIS?
    Anyways unfortunately your advice did not help

    ReplyDelete
  2. You are right, I work all day with IIS and asp.net and sometimes I have a lapsus...
    Are you using ApplicationVerifier or Embassy Trust Suite? It seems that they interfer with the profiler.

    ReplyDelete