Solved

Debugging COM Server applications from ASP

Posted on 1999-01-14
4
220 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 200 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
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 goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
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.

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now