Red Gate forums :: View topic - Profiler hangs on Windows 2008 x64
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Performance Profiler 5
ANTS Performance Profiler 5 forum

Profiler hangs on Windows 2008 x64

Search in ANTS Performance Profiler 5 forum
Post new topic   Reply to topic
Jump to:  
Author Message
Pawel Pabich



Joined: 22 Sep 2009
Posts: 1

PostPosted: Tue Sep 22, 2009 9:49 am    Post subject: Profiler hangs on Windows 2008 x64 Reply with quote

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:
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
Back to top
View user's profile Send private message
Chris Auckland



Joined: 24 Oct 2006
Posts: 755
Location: Red Gate Software Ltd.

PostPosted: Wed Sep 23, 2009 2:19 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail
Chris.Allen



Joined: 12 Mar 2009
Posts: 546

PostPosted: Mon Oct 05, 2009 3:48 pm    Post subject: Reply with quote

In fact, could you remove all the pdb files for the assemblies that get profiled?
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