Solved

Debugging with InterDev and IIS 5.0

Posted on 2002-05-08
8
345 Views
Last Modified: 2008-02-01
I run IIS 5 and Visual InterDev and it works fine, until I want to debug.
I get a messagebox stating it is not possible to automatically start the debug mode and if I still want to debug.
I choose yes and te app starts in IE, but i can't debug, maybe get to the line of code that isn't working sometimes, mostly through the errormessage in IE and the linenumber.
What am I doing wrong?
I tried to search MSDN, but couldn't find anything to my satisfaction.
Should I install Backoffice server?
0
Comment
Question by:HeN_da_MaN
8 Comments
 
LVL 4

Expert Comment

by:Zvika
Comment Utility
If you want to denug the IIS that is on your local machine, you need to choose Debug->processes from the menu (Ctrl+Shift+R)
Then you have a window with the processes, you should choose the inetinfo.exe process and click attach.
Now you should have a new window called "Running Documents"
if you don't see it you can hold down the Ctrl+Alt+R.
Now in that window you see all the pages that were used in your IIS since the last restarting of it. you double click the page you want to debug, which then appear in your "Project explorer" list with an empty icon. Now put a break point where you want and then go to your browser and request that page.

putting a breakpoint in the asp file itself is useless.
Try it and let me know if it's working for you
Good Luck
Zvika
0
 

Author Comment

by:HeN_da_MaN
Comment Utility
Thanks Zvika,
I'm going to try in one hour, as soon as I get home from work.
Check in to see if your answer did the trick.
(It sounds allright)

Thanks a lot,

Hen
0
 
LVL 5

Expert Comment

by:dgorin
Comment Utility
I use breakpoints in asp files all the time.

First, you need to set up your machine as described here.

http://support.microsoft.com/default.aspx?scid=kb;EN-US;q192011

Then, make your project be the startup project, and pick the page you want to be the start page.  Right-click on the project in the VID project explorer and set as startup project.  Then find the page you want to begin with, right-click and set as start page.  Open any of the asp pages and put in breakpoints as you want.

Press F5.  If everything is setup right you should get a login for the debug user, then your code will execute and run to a breakpoint.  When in break mode, use F10 and F11 to step over/into statements.
0
 

Author Comment

by:HeN_da_MaN
Comment Utility
Zvika, your method did not work for me, the 'Running Document' part did not work.
Here I did not see any documents, just inetinfo.
Still I think this is the only way for me to go.
Can I do this trick any other way you know about?

Also thank you, dgorin for giving me the link.
The problem is I haven't got the second CD at the moment.
still I keep this in mind for the future.

I would like to share the points to both of you, I don't think this is possible, so I'll give it one more day.

Hen
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 4

Accepted Solution

by:
Zvika earned 75 total points
Comment Utility
HeN_da_MaN

If you saw the inetinfo.exe process and attached it, but didn't see any docs in the "running documents" window. try one of those:
enter your iis, choos the folder you would like to debug, right click and select "properties", then click the button "configurations" (if you debug the "default web site", choose the tab "home directory" there you'll find the "configurations" button"). select the tab "App debugging" and check the check box:"Enable ASP server-side script debugging".
Now restatr your IIS, surf in some of your ASP pages, then re-attach the inetinfo.exe.

should do the trick...
Good Luck
Zvika

0
 

Author Comment

by:HeN_da_MaN
Comment Utility
Zvika,

Thanks a lot, I am now able to set breakpoints and/or step through my code.
I use VB a lot and I am used to this way of debugging.
So, I am very gratefull and increased the points to 75.

Thanks again,

Hen
0
 
LVL 4

Expert Comment

by:Zvika
Comment Utility
You're welcome.
It's always a pleasure to share knowledge and help each other.
In the Experts Exchanged points thing makes it even more fun.
Thank you too
and Good Luck with debugging :)
0
 

Expert Comment

by:tabacchm
Comment Utility
You may have a corrupted DCOM database.  (I had the exact symptom you
describe and this is what the case was).  It seemed that a network install
of Windows 2000 Service Pack 3, either snafooed up the DCOM database, or
redid the DCOM default settings.

I followed the steps in Method 1 of the attached link and everything
worked perfectly! (After rebooting)

http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B319624

If you need anymore insight, please email.  I might be able to assist.

Thanks,
Marci
tabacchm@meijer.com
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

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

744 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

13 Experts available now in Live!

Get 1:1 Help Now