Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Debugging COM Server applications from ASP

Posted on 1999-01-14
4
Medium Priority
?
235 Views
Last Modified: 2013-11-25
Does anyone know how to debug an InprocServer32 COM object written in c++ (ATL using VC50) called from an ASP.  My ASP is using the CreateObject(myComClass.myComObject) function to invoke it.  I know how to debug an InProcServer called from a VB app, another dll, or an exe.  However, I don't know what to attach to or what executable to use for this debug session.  
I'm running NT server 4.0 with IIS.  I'm also using MTS but have have it disabled for now.
0
Comment
Question by:readit1
  • 3
4 Comments
 

Author Comment

by:readit1
ID: 1182271
Edited text of question
0
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 800 total points
ID: 1182272
The easiest way is to load your workspace for your COM project. Set your breakpoints wherever you want them. Then select the Build | Start Debug | Attach To Process. Make sure Show System Process is checked. Then select inetinfo and press OK. This will cause the debugger to watch those breakpoints.
0
 

Author Comment

by:readit1
ID: 1182273
thui, thanks for the answer.  Actually, I tried that today.  At least I think I did.  I tried so many things, I'm so confused!  I'm going to try this again tomorrow and I'll let you know what happened.

Thanks, Sam
0
 

Author Comment

by:readit1
ID: 1182274
thui, you were right!  Your solution was a success.  There were two issues that I came across however.

1) I had to actually run a query using ASP before starting my debugging session.  This loads some additional vbscript and ASP Dll's that are needed.  

2) inetinfo gets unloaded after each session. Consequenly, I have to restart the computer after each session.  I tried manually executing inetinfo after my debugging session but it nly stayed running for a few seconds.

Have you experienced these conditions?

Sam



0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question