Red Gate forums :: View topic - Error when profiling COM+ in Windows 2008 R2
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

Error when profiling COM+ in Windows 2008 R2

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



Joined: 11 Aug 2009
Posts: 4

PostPosted: Thu Jan 14, 2010 5:22 pm    Post subject: Error when profiling COM+ in Windows 2008 R2 Reply with quote

I cannot seem to figure this problem out and am finding little information on the web concerning the error that I am getting. I am using Windows Server 2008 R2 and attempting to profile a COM+ application. I can begin profiling the application without problem. But I am using a locally hosted web site to test the COM+ app and am getting the following error returned from IIS:

The common language runtime is not available (Exception from HRESULT: 0x80004028)

Any help would be appreciated.
Back to top
View user's profile Send private message
AndrewH



Joined: 17 Aug 2006
Posts: 137

PostPosted: Thu Jan 14, 2010 6:37 pm    Post subject: Reply with quote

We've got one bug in our tracking system that might be this issue. The situation it occurs in is a little complex:

* You need to be running a 64-bit version of Windows
* The COM+ component should be installed as a 32-bit component
* It must also be configured with an 'Any CPU' platform target
* Communications with the component must be from a .NET application using COM+ interop

The current version of ANTS will see that the component can be launched with a 64-bit server process and will do so without paying any attention to the way the component is actually installed. Almost everything works in this situation (oddly enough, including 32-bit native applications which you'd expect to be most likely to fail), except when a .NET application tries to use COM+ interop to communicate with the component - it tries to switch to .NET remoting and due to an interaction that's pretty bizarre gets confused when it finds that the component is running in 64-bit mode and reports the error that you're seeing.

You can work around the issue by ensuring that the component is installed as 64-bit, or by changing the project configuration so that the platform target is set to x86 (the former fixes .NET's behaviour, and the latter fixes ANTS). We've scheduled this particular bug to be fixed for version 6.
_________________
Andrew Hunter
Software Developer
Red Gate Software Ltd.
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