Solved

Debugging COM Server applications from ASP

Posted on 1999-01-14
4
232 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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 member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

635 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