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

x
?
Solved

Debugging with InterDev and IIS 5.0

Posted on 2002-05-08
8
Medium Priority
?
359 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
ID: 6996416
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
ID: 6996551
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
ID: 6998140
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:HeN_da_MaN
ID: 7000776
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
 
LVL 4

Accepted Solution

by:
Zvika earned 300 total points
ID: 7004146
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
ID: 7004177
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
ID: 7004183
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
ID: 8113263
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

824 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