Red Gate forums :: View topic - Profiling a VSTO add-in
Return to www.red-gate.com RSS Feed Available

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

Profiling a VSTO add-in

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



Joined: 24 Jan 2008
Posts: 1

PostPosted: Thu Jan 24, 2008 1:25 pm    Post subject: Profiling a VSTO add-in Reply with quote

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

Thanks in advance
Back to top
View user's profile Send private message
Robert



Joined: 30 Oct 2006
Posts: 428
Location: Cambridge, UK

PostPosted: Thu Jan 24, 2008 2:18 pm    Post subject: Reply with quote

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
Developer, Red Gate Software Ltd
Back to top
View user's profile Send private message MSN Messenger
mgagne_98@hotmail.com



Joined: 28 Nov 2008
Posts: 1

PostPosted: Fri Nov 28, 2008 2:47 am    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message
Robert



Joined: 30 Oct 2006
Posts: 428
Location: Cambridge, UK

PostPosted: Fri Nov 28, 2008 11:22 am    Post subject: Reply with quote

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
Developer, Red Gate Software Ltd
Back to top
View user's profile Send private message MSN Messenger
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