Profiling a VSTO add-in

Code and memory profiling for .NET developers.

Profiling a VSTO add-in

Postby Andrew Wiles » Thu Jan 24, 2008 1:25 pm

Can you provide information on the correct setup to profile a VSTO 2005 SE application (built for Office 2007)

Thanks in advance
Andrew Wiles
 
Posts: 1
Joined: Thu Jan 24, 2008 1:12 pm

Postby Robert » Thu Jan 24, 2008 2:18 pm

Hi,

The trick here is to profile the office application you're actually hosting your addin in, so Word / Excel / Outlook. I'm assuming you've got the addin loading on start up already, so you shouldn't need to do any further configuration.

When you try and start profiling, ANTS Profiler may warn you that you haven't selected a .NET executable, but accept this warning and carry on anyway. As the application starts up, watch the status bar in ANTS Profiler - it should change from "Waiting for connection..." to "Profiling performance of...".

I've just done a really quick test here in Office 2007, and it all seems to work nicely.

Hope that helps,
Robert
Robert Chipperfield
Red Gate
Robert
 
Posts: 412
Joined: Mon Oct 30, 2006 11:15 am
Location: Cambridge, UK

Postby mgagne_98@hotmail.com » Fri Nov 28, 2008 2:47 am

I am having the same problem. I am using VS.NET 2008 with the latest version of ANTS Profiler (version 4.1) and I am not able to profile Microsoft Word 2007 AddIns. I get the following error : "The target of the active project is not an executable file" and it gives me no choices.

Any idea how to fix that? Is it possible to profile this kind of project?

Thanks!
mgagne_98@hotmail.com
 
Posts: 1
Joined: Fri Nov 28, 2008 2:43 am

Postby Robert » Fri Nov 28, 2008 11:22 am

Hi,

You need to select "winword.exe" as the application you want to profile, rather than your Add-in DLL. I've not personally tried it with Word, but Outlook 2007 add-ins certainly work using this method.

Hope that helps,
Robert
Robert Chipperfield
Red Gate
Robert
 
Posts: 412
Joined: Mon Oct 30, 2006 11:15 am
Location: Cambridge, UK


Return to ANTS Profiler Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests