Link to home
Start Free TrialLog in
Avatar of anugrah
anugrahFlag for India

asked on

Unable to Debug the COM+ Library Application (C++)

Hi Everyone !

I have a web-application which has it own ISAPI implementation.
i.e. backend is COM+ Server Applications, COM+ Library Applications, C# .NET Class Libraries but it uses its own framework to produce the webpages at runtime using CSS Stylesheets, XML Data and XSL.

There are 2 COM+ Server Applications GContext and GSecurity.

Now if i have to debug the C# code then in settings i have mentioned to start dllhost.exe as an external program and gave the GUID of GSecurity as an argument like this /ProcessID:{B1CE1DD1-BA2A-40A5-8B6D-C46CCC88566A}. This way i can sucessfully debug the C# code.

If i have to debug the COM+ Server Applications then i attach the process to correct dllhost.exe with matching Process ID.

Now the problem is that I am not able to debug the COM+ Libraries Applications!!!

On my part i tried following things(point a & b given below) just on hit-n-trial basis but no use:
a.)
-------------------------------------------------------------------------
I followed these steps to debug the COM+ Library Application:
1.) Created a new solution
2.) Added the COM+ Server App (GContext or GSecurity in my case)
3.) Added a COM+ Library App( GISAPI / GUGL / GDAL)
4.) Added breakpoints to all methods.

Now only the breakpoints in the COM+ Server App code were hit and breakpoints in COM+ Library App were never hit .....though COM+ Library was executing normaly .. confirmed with the help of OutputDebugString.

b.)
---------------------------------------------------
Also i tried to debug the COM+ Library application in the way i an debugging C# code(by starting dllhost.exe as an external program through settings page) but still i can not debug the COM+ Library App.

Can you please suggest me some way to debug the code of COM+ Library Application?

Thanks in Advance
Anugrah A
Avatar of anugrah
anugrah
Flag of India image

ASKER

I spent some time on Debugging of COM+ Libraries Applications and findings were fruitful :)

In fact we can debug any code i.e. COM+ Server, COM+ Library and even C# Class Libraries without giving that GUID in the settings file. All we have to do is to attach the debugger to dllhost.exe having Process ID of GSecurity (Process ID can be seen in the component services panel -> view status); while attaching the process we have to make sure that native and managed both types are selected.
Avatar of anugrah

ASKER

Hi Administrators / Community Service,

Kindly  close this quetion and return my points as i have solved the query on my own.
For the help of other users i have pasted the asnwer here as well.

Thanks and Regrds
Atreya A
ASKER CERTIFIED SOLUTION
Avatar of EE_AutoDeleter
EE_AutoDeleter

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial