Profile ClickOnce Application

Memory profiling for .NET developers

Moderators: Bart Read, StephenC, Alex.Davies, AndrewH, melvyn.harbour

Profile ClickOnce Application

Postby acgentry » Mon Nov 23, 2009 9:53 pm

Is there a way to profile a clickonce application that has been installed on a workstation?

Thanks!
acgentry
 
Posts: 2
Joined: Mon Nov 23, 2009 9:47 pm

Postby Brian Donahue » Wed Nov 25, 2009 11:17 am

Hi Adam,

I can't see a way of profiling a deployed clickonce application, you will probably be better off profiling it before it's been deployed.

If you use the \"install on the computer\" option, it should be a matter of opening the program shortcut and using the shortcut program name and arguments in the memory profiler's .NET desktop application settings.

If you make it so your users always have to go through the web browser to run the application, this is a bit more tricky. I have tried a few things to make it work -- one was the obvious:
Then the less obvious way of running ClickOnce that I got from reverse-engineering it:

The ClickOnce app launches, but even with the \"profile child processes\" option turned on, neither ANTS Memory nor ANTS Performance profiler seem to pick up on the .NET app being run by ClickOnce.

I hope that someone more familiar with ClickOnce can chime in on this topic. :-)
Brian Donahue
 
Posts: 6668
Joined: Mon Aug 23, 2004 10:48 am

Any updates?

Postby acgentry » Mon Feb 01, 2010 6:12 pm

Sorry to be a nudge, has your firm found a solution? I think our issues are coming from something in the core of microsoft deployment and autoupdating, but I can't recreate the issue without the app being deployed via clickonce.

Thanks!
Adam
acgentry
 
Posts: 2
Joined: Mon Nov 23, 2009 9:47 pm

Postby Brian Donahue » Thu Jun 24, 2010 5:25 pm

Hi all,

I'm happy to say that you can successfully profile ClickOnce in ANTS Performance Profiler v6 using the earlier instructions:
program: c:\\windows\\system32\\rundll32.exe
arguments: dfshim,ShOpenVerbApplication http://localhost/myapplication/my.application
*where \"http://localhost/myapplication/my.application\" is the ClickOnce URL.*

This means that you can easily profile clickonce whether or not you have actually chosen to install the application locally.
Brian Donahue
 
Posts: 6668
Joined: Mon Aug 23, 2004 10:48 am


Return to ANTS Memory Profiler Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests