Red Gate forums :: View topic - How to enable profiling website in Visual Studio?
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Memory Profiler Previous Versions
ANTS Memory Profiler Previous Versions forum

How to enable profiling website in Visual Studio?

Search in ANTS Memory Profiler Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
bpaetzke



Joined: 21 Sep 2009
Posts: 3
Location: Los Angeles, CA

PostPosted: Mon Sep 21, 2009 9:57 pm    Post subject: How to enable profiling website in Visual Studio? Reply with quote

The two "profile" buttons are disabled in the ANTS5 toolbar of my web solution in Visual Studio 2008. How can I enable them?

Let me spell out what the buttons are--just in case there's question. When I hover over the two disabled buttons they say:
* "Profile the memory of this project in ANTS Memory Profiler 5"
* "Profile the performance of this project in ANTS Profiler 5"

Also, in the menu bar, the ANTS5 menu has these items disabled:
* Profile Performance
* Profile Method-level Performance
* Profile Memory

FYI, the rest of the items in the menu bar are enabled:
* Launch ANTS5 Performance Profiler
* Launch ANTS5 Memory Profiler
* Performance Profiler Help
* Memory Profiler Help
* About ANTS5 Profiler
Back to top
View user's profile Send private message
bpaetzke



Joined: 21 Sep 2009
Posts: 3
Location: Los Angeles, CA

PostPosted: Tue Sep 22, 2009 10:19 pm    Post subject: A workaround for this Reply with quote

I found a workaround now.

The workaround was to:
1) create a new solution
2) add my existing web project and class library projects
3) set the web project as the startup project
4) then profile

Originally, I did step 4 before 3. And that resulted in disabling the profiling buttons. But if you know a fix for this w/o having to recreate the solution, let me know.
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6641

PostPosted: Wed Sep 23, 2009 10:56 am    Post subject: Reply with quote

Hi Bill,

The ANTS Profiler add-in is a bit finicky when it comes to web projects. In most cases, it disables the menu items when the projects does not produce executable output, but it also checks the first project in the solution rather than scoping to the currently-selected project when there is more than one project in the solution.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group