Red Gate forums :: View topic - Memory profiler launch and source code navigation issues
Return to www.red-gate.com RSS Feed Available

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

Memory profiler launch and source code navigation issues

Search in ANTS Memory Profiler 7 forum
Post new topic   Reply to topic
Jump to:  
Author Message
myr_zero



Joined: 05 Apr 2013
Posts: 3

PostPosted: Fri Apr 05, 2013 7:44 am    Post subject: Memory profiler launch and source code navigation issues Reply with quote

Hi

I have Silverlight 5 application in .NET 4.5. I am using ANTS profiler with Visual studio 2012.

When I try to run memory profiler from visual studio, by selecting option "profile memory" from ANTS menu, I got exception "Exception has been thrown by the target of an invocation." Exception detail is as below

System.Reflection.TargetInvocationException
at ?.?.?(Object , ProfilerErrorEventArgs )
at RedGate.Profiler.Dispatch.EventExtn.?.??(IDispatchTask )
at ??.??.Dispatch(? )

Caused by:

Could not locate WebDev server executable - please ensure you have Microsoft Visual Studio 2005 or later installed.
RedGate.Profiler.Engine.Exceptions.CannotStartSessionException
at ..Launch()
at ..?()

Caused by:

Could not locate WebDev server executable - please ensure you have Microsoft Visual Studio 2005 or later installed.
RedGate.Profiler.Engine.Exceptions.CannotStartSessionException
at .?.(WebDevNetVersion )
at .?.()
at ..Launch()


I am successfully able to run Performance Profiler. Issue is only with Memory profiler.

And one more issue. If I run Memory profiler separately, select option "Silverlight 4+ application" and give a local URL then it runs fine. But when analyzing the snapshots, I am not able to navigate to source code from "Instance Retention Graph" node. When I right click on a node(source code present) I don't see option to show in visual studio. But in performance profiler I get option to navigate to source code when I am running profiler externally by giving URL.

Any help would be appreciated.

Thanks
Manju
Back to top
View user's profile Send private message
myr_zero



Joined: 05 Apr 2013
Posts: 3

PostPosted: Mon Apr 08, 2013 7:04 am    Post subject: Re: Memory profiler launch and source code navigation issues Reply with quote

myr_zero wrote:
Hi

I have Silverlight 5 application in .NET 4.5. I am using ANTS profiler with Visual studio 2012.

When I try to run memory profiler from visual studio, by selecting option "profile memory" from ANTS menu, I got exception "Exception has been thrown by the target of an invocation." Exception detail is as below

System.Reflection.TargetInvocationException
at ?.?.?(Object , ProfilerErrorEventArgs )
at RedGate.Profiler.Dispatch.EventExtn.?.??(IDispatchTask )
at ??.??.Dispatch(? )

Caused by:

Could not locate WebDev server executable - please ensure you have Microsoft Visual Studio 2005 or later installed.
RedGate.Profiler.Engine.Exceptions.CannotStartSessionException
at ..Launch()
at ..?()

Caused by:

Could not locate WebDev server executable - please ensure you have Microsoft Visual Studio 2005 or later installed.
RedGate.Profiler.Engine.Exceptions.CannotStartSessionException
at .?.(WebDevNetVersion )
at .?.()
at ..Launch()


I am successfully able to run Performance Profiler. Issue is only with Memory profiler.

And one more issue. If I run Memory profiler separately, select option "Silverlight 4+ application" and give a local URL then it runs fine. But when analyzing the snapshots, I am not able to navigate to source code from "Instance Retention Graph" node. When I right click on a node(source code present) I don't see option to show in visual studio. But in performance profiler I get option to navigate to source code when I am running profiler externally by giving URL.

Any help would be appreciated.

Thanks
Manju



Below is the log

08 Apr 2013 11:29:47.099 [1] INFO RedGate.Profiler.Logging.LogService - Starting new ANTS Memory Profiler 7 session
08 Apr 2013 11:29:47.117 [1] INFO RedGate.Profiler.Logging.LogService - Assembly version: 7.4.0.41
08 Apr 2013 11:29:51.492 [1] WARN RedGate.Profiler.OS.Local.LocalWindowsVersionInspector - Detected Windows version: Windows Server 2008 Business (6.1 64-bit)
08 Apr 2013 11:29:51.492 [1] WARN RedGate.Profiler.IISSupport.Local.LocalIisInspector - IIS is supported on installed OS version
08 Apr 2013 11:29:51.514 [1] WARN RedGate.Profiler.IISSupport.Local.LocalIisInspector - Result of check to see if inetinfo.exe running: False
08 Apr 2013 11:29:51.534 [1] WARN RedGate.Profiler.IISSupport.Local.LocalIisInspector - Result of check to see if W3SVC running: True
08 Apr 2013 11:29:51.535 [1] WARN RedGate.Profiler.IISSupport.Local.LocalIisInspector - Checks confirm that IIS is running.
08 Apr 2013 11:29:51.539 [1] WARN RedGate.Profiler.IISSupport.Local.LocalIisInspector - Result of check to see if W3SVC running: True
08 Apr 2013 11:29:51.539 [1] WARN RedGate.Profiler.IISSupport.Local.LocalIisInspector - Checks confirm that IIS is enabled.
08 Apr 2013 11:29:51.542 [1] WARN RedGate.Profiler.IISSupport.Local.LocalIisInspector - Successfully detected IIS installation: IIS 7 (Auto-detected)
08 Apr 2013 11:29:51.544 [1] WARN RedGate.Profiler.IISSupport.Local.LocalIisInspector - Checks confirm that IIS is installed.
08 Apr 2013 11:29:53.701 [1] INFO RedGate.Profiler.Engine.Startup.Trigger.TriggerServer - Starting trigger process C:\Program Files\Red Gate\ANTS Memory Profiler 7\RedGate.Profiler.Trigger_x86.exe
08 Apr 2013 11:29:54.194 [1] INFO RedGate.Profiler.Engine.Startup.Trigger.TriggerServer - Trigger process has connected
08 Apr 2013 11:29:54.195 [1] INFO RedGate.Profiler.Engine.Startup.Trigger.TriggerServer - A suitable trigger process is now available
08 Apr 2013 11:29:55.805 [10] INFO RedGate.Profiler.Engine.Startup.Trigger.TriggerServer - Starting elevated trigger process C:\Program Files\Red Gate\ANTS Memory Profiler 7\RedGate.Profiler.Trigger_x64.exe
08 Apr 2013 11:30:00.243 [10] INFO RedGate.Profiler.Engine.Startup.Trigger.TriggerServer - Trigger process has connected
08 Apr 2013 11:30:00.244 [10] INFO RedGate.Profiler.Engine.Startup.Trigger.TriggerServer - A suitable trigger process is now available
08 Apr 2013 11:30:00.279 [10] INFO RedGate.Profiler.Engine.Logger - ANTS Memory Profiler Engine has started.
08 Apr 2013 11:30:00.281 [10] INFO RedGate.Profiler.Engine.Logger - Version: 7.4.0.41
08 Apr 2013 11:30:00.282 [10] INFO RedGate.Profiler.Engine.Startup.Basic.PipeConnection - Listening for connections on \\.\pipe\AMP71.
08 Apr 2013 11:30:00.475 [11] WARN RedGate.Profiler.Engine.Startup.IIS.IISUtilities - WaitForPort on address 127.0.0.1, port 8013
08 Apr 2013 11:30:02.015 [11] ERROR RedGate.Profiler.Engine.Startup.Sessions.WebDevSession - Couldn't find WebDev at: C:\Windows\Microsoft.NET\Framework\v2.0.50727\WebDev.WebServer.exe
08 Apr 2013 11:30:02.027 [11] ERROR RedGate.Memory.Controller.Session.ProfilerSession - Failed to connect to target process because an exception occurred:

Could not locate WebDev server executable - please ensure you have Microsoft Visual Studio 2005 or later installed.

Please check your settings and try again.
RedGate.Profiler.Engine.Exceptions.CannotStartSessionException: Could not locate WebDev server executable - please ensure you have Microsoft Visual Studio 2005 or later installed. ---> RedGate.Profiler.Engine.Exceptions.CannotStartSessionException: Could not locate WebDev server executable - please ensure you have Microsoft Visual Studio 2005 or later installed.
at .?.(WebDevNetVersion )
at .?.()
at ..Launch()
--- End of inner exception stack trace ---
at ..Launch()
at ..?()
08 Apr 2013 11:30:02.054 [8] FATAL RedGate.Memory.Controller.UIControllers.Error.ErrorController - Unhandled exception occurred in controller worker thread: Exception has been thrown by the target of an invocation.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> RedGate.Profiler.Engine.Exceptions.CannotStartSessionException: Could not locate WebDev server executable - please ensure you have Microsoft Visual Studio 2005 or later installed. ---> RedGate.Profiler.Engine.Exceptions.CannotStartSessionException: Could not locate WebDev server executable - please ensure you have Microsoft Visual Studio 2005 or later installed.
at .?.(WebDevNetVersion )
at .?.()
at ..Launch()
--- End of inner exception stack trace ---
at ..Launch()
at ..?()
--- End of inner exception stack trace ---
at ?.?.?(Object , ProfilerErrorEventArgs )
at RedGate.Profiler.Dispatch.EventExtn.?.??(IDispatchTask )
at ??.??.Dispatch(? )
08 Apr 2013 11:30:02.065 [1] ERROR RedGate.Memory.UI.TheUI - Exception has been thrown by the target of an invocation.
08 Apr 2013 11:30:02.065 [1] ERROR RedGate.Memory.UI.TheUI - Exception has been thrown by the target of an invocation.
08 Apr 2013 11:30:02.066 [1] ERROR RedGate.Memory.UI.TheUI - System.Reflection.TargetInvocationException
08 Apr 2013 11:30:02.066 [1] ERROR RedGate.Memory.UI.TheUI - at ?.?.?(Object , ProfilerErrorEventArgs )
at RedGate.Profiler.Dispatch.EventExtn.?.??(IDispatchTask )
at ??.??.Dispatch(? )
08 Apr 2013 11:30:02.067 [1] ERROR RedGate.Memory.UI.TheUI - Caused by:
08 Apr 2013 11:30:02.067 [1] ERROR RedGate.Memory.UI.TheUI - Could not locate WebDev server executable - please ensure you have Microsoft Visual Studio 2005 or later installed.
08 Apr 2013 11:30:02.067 [1] ERROR RedGate.Memory.UI.TheUI - RedGate.Profiler.Engine.Exceptions.CannotStartSessionException
08 Apr 2013 11:30:02.068 [1] ERROR RedGate.Memory.UI.TheUI - at ..Launch()
at ..?()
08 Apr 2013 11:30:02.068 [1] ERROR RedGate.Memory.UI.TheUI - Caused by:
08 Apr 2013 11:30:02.068 [1] ERROR RedGate.Memory.UI.TheUI - Could not locate WebDev server executable - please ensure you have Microsoft Visual Studio 2005 or later installed.
08 Apr 2013 11:30:02.068 [1] ERROR RedGate.Memory.UI.TheUI - RedGate.Profiler.Engine.Exceptions.CannotStartSessionException
08 Apr 2013 11:30:02.069 [1] ERROR RedGate.Memory.UI.TheUI - at .?.(WebDevNetVersion )
at .?.()
at ..Launch()
Back to top
View user's profile Send private message
james.billings



Joined: 16 Jun 2010
Posts: 1116
Location: My desk.

PostPosted: Mon Apr 08, 2013 2:21 pm    Post subject: Reply with quote

Thanks for your post.

Development on the Memory Profiler lags behind the Performance Profiler I'm afraid, and it looks like currently AMP only checks as far as VS2010 for the dev-server. We should be getting back to work on AMP soon, and this is likely to get fixed, but for now the following workaround might work.

It looks like we check for the webdev server in %commonprogramfiles%\Microsoft Shared\DevServer\10.0. You will probably have one in a folder named 11.0 instead; so one option is to try copying the files from the 11.0 folder into a 10.0 folder alongside and see if we find it (on my machine %commonfiles% also went to the "Program Files" folder, not "Program Files (x86)" so you may also need to copy to the right location there too.

I've not tried the above; so I can't guarantee it'll work, but it's worth trying.
Back to top
View user's profile Send private message
myr_zero



Joined: 05 Apr 2013
Posts: 3

PostPosted: Tue Apr 09, 2013 5:15 am    Post subject: Re: Reply with quote

james.billings wrote:
Thanks for your post.

Development on the Memory Profiler lags behind the Performance Profiler I'm afraid, and it looks like currently AMP only checks as far as VS2010 for the dev-server. We should be getting back to work on AMP soon, and this is likely to get fixed, but for now the following workaround might work.

It looks like we check for the webdev server in %commonprogramfiles%\Microsoft Shared\DevServer\10.0. You will probably have one in a folder named 11.0 instead; so one option is to try copying the files from the 11.0 folder into a 10.0 folder alongside and see if we find it (on my machine %commonfiles% also went to the "Program Files" folder, not "Program Files (x86)" so you may also need to copy to the right location there too.

I've not tried the above; so I can't guarantee it'll work, but it's worth trying.



I tried this approach and it works. But it is not helping anything for analysis.
1. When directly running from Visual studio, memory profiler only profiles server side objects. Same is true in case of performance profiler also.
2. And still there is no source code navigation functionality

So I believe we left with only option, to run profiler using local dev server URL and manual navigation to source code.
Back to top
View user's profile Send private message
james.billings



Joined: 16 Jun 2010
Posts: 1116
Location: My desk.

PostPosted: Tue Apr 09, 2013 12:44 pm    Post subject: Reply with quote

Yeah, with Silverlight you have both client code executing, and also the server side hosted by the web-server. You cannot profile both together in one session unfortunately as they are two separate processes.
Back to top
View user's profile Send private message
mobaidr



Joined: 11 Apr 2013
Posts: 1

PostPosted: Thu Apr 11, 2013 9:20 am    Post subject: Re: Reply with quote

james.billings wrote:
Yeah, with Silverlight you have both client code executing, and also the server side hosted by the web-server. You cannot profile both together in one session unfortunately as they are two separate processes.


I tried navigating to silverlight code mentioned @ this url "http://www.red-gate.com/supportcenter/content/ANTS_Memory_Profiler/help/7.4/amp_setup_silverlight"

But when i run the application I get the following error "Service communications cannot be started. If running in Visual Studio, make sure that the web application project is the startup project."
Back to top
View user's profile Send private message
james.billings



Joined: 16 Jun 2010
Posts: 1116
Location: My desk.

PostPosted: Fri Apr 12, 2013 12:28 pm    Post subject: Reply with quote

That's not a message I've seen before. When does it come up- when starting your SL app out of browser? Or when navigating to source code?
Can you actually profile OK, and it's just the source code navigation that's broken?
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