Profiler hangs on Windows 2008 x64

Code profiling for .NET Developers

Moderators: StephenC, Alex.Davies, AndrewH

Profiler hangs on Windows 2008 x64

Postby Pawel Pabich » Tue Sep 22, 2009 9:49 am

Hi,

I'm trying to profile a windows service that runs on Windows 2008 x64. When I try to start a new profiling session I get the following error:

Code: Select all
Fatal error to instantiating components hosting for: DataManager (type: XXXXXXXXXXXX, YYYYYYYYYYYYY, Version=A.B.C.D, Culture=neutral, PublicKeyToken=null). Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeLoadException: Bad unmanaged code entry point.


Is there a patch that I have to use ? I'm using Ant 5.1.0.14.

Thanks

Pawel
Pawel Pabich
 
Posts: 1
Joined: Tue Sep 22, 2009 9:27 am

Postby Chris Auckland » Wed Sep 23, 2009 2:19 pm

Thanks for your post.

The message seems to indicate a problem reading an assembly for whatever reason.

This is a pretty vague answer, so hopefully there will be more information in the log file. You can find the logs in Help > Open Log folder

We have seent his kind of thing with AJAX before. The AjaxControlToolkit.dll emits code using reflection and this interferes with dynamic code being emitted by ANTS Profiler at the same time. We have a workaround and that is to go into your bin folder for the web application and delete AjaxControlToolkit.pdb, which will stop ANTS Profiler from attempting to get line-level timings and source code for that dll. The rest of the source code view shouldn't be affected.

The other alternative would be to use method-level only timings, but that would be undesirable if line-level is of interest to you.

I know you're probably not using AJAx, but i thought this information might be useful, in case your issue turns out to be similar.
Chris
Chris Auckland
 
Posts: 757
Joined: Tue Oct 24, 2006 2:12 pm
Location: Red Gate Software Ltd.

Postby Chris.Allen » Mon Oct 05, 2009 3:48 pm

In fact, could you remove all the pdb files for the assemblies that get profiled?
Chris.Allen
 
Posts: 594
Joined: Thu Mar 12, 2009 4:17 pm


Return to ANTS Performance Profiler 5

Who is online

Users browsing this forum: No registered users and 0 guests