troubleshooting Question

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

Avatar of anugrah
anugrahFlag for India asked on
Programming Languages-OtherSystem ProgrammingEditors IDEs
3 Comments1 Solution750 ViewsLast Modified:
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:
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.

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
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros