Solved

Debugging COM Server applications from ASP

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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.

680 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