Click here to Skip to main content
12,074,485 members (60,259 online)
Click here to Skip to main content
Add your own
alternative version

Stats

56.1K views
32 bookmarked
Posted

Dubugging Classic ASP in Visual Studio 2005

, 22 Jun 2007 CPOL
Rate this:
Please Sign up or sign in to vote.
Dubugging classic ASP in Visual Studio 2005 on Windows XP and IIS 5.

Introduction

I couldn't find a lot of documentation on how to debug the classic ASP pages in VS 2005 running on Windows XP and IIS 5.0. So I tried a few stuff and finally figured it out. I have listed those steps in this article. It is very easy and takes only 5 minutes. I have not tried it with the VS 2005 Website model and used the Web Application Project instead. If you do not have the Web Application Project add-in installed, you can download it from here.

Steps

  1. Go to Control Panel>Administrative Tools>Computer Management. Add IWAM_ComputerName account to the Debugger Users group.
  2. Create a Web Application Project in VS 2005 and add the .asp files.
  3. Create a virtual directory in IIS for the Web Application Project that you created.
  4. On the Properties tab of the virtual directory in IIS, do the following:
    1. Click the Configuration button.
    2. On the Mappings tab, select .asp and click Edit.
    3. Add the DEBUG verb and click OK.
    4. Go to the Debugging tab.
    5. Enable ASP debugging and client-side debugging.
  5. Load the web application project and set the breakpoint in ASP.
  6. In VS 2005, go to Debug > Attach to Process.
  7. Select the DLLHost process that runs under the IWAM_ComputerName account.
  8. Load the .asp file in the browser and the break point will bind now.

Happy coding.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Madhu Rajagopalan
United States United States
No Biography provided

You may also be interested in...

Comments and Discussions

 
QuestionWow ... Pin
roshan453429-Jan-13 0:09
memberroshan453429-Jan-13 0:09 
GeneralVS80-KB915364-X86-ENU.exe Pin
JRossi21-Oct-07 4:39
memberJRossi21-Oct-07 4:39 
GeneralIs there a way to do this in VWD2005 Express Pin
mhariri26-Jun-07 5:33
membermhariri26-Jun-07 5:33 
GeneralDuh!!!!!!!! Pin
Buddy Stein24-Jun-07 12:53
memberBuddy Stein24-Jun-07 12:53 
GeneralRe: Duh!!!!!!!! Pin
Madhu Rajagopalan25-Jun-07 9:16
memberMadhu Rajagopalan25-Jun-07 9:16 
AnswerNo, but, it's in the MSDN documentation Pin
Buddy Stein25-Jun-07 10:41
memberBuddy Stein25-Jun-07 10:41 
GeneralRe: No, but, it's in the MSDN documentation Pin
denic27-Jun-07 22:48
memberdenic27-Jun-07 22:48 
QuestionAny hints for VS 2005 in Vista? Pin
ComplexityChaos22-Jun-07 10:59
memberComplexityChaos22-Jun-07 10:59 
AnswerRe: Any hints for VS 2005 in Vista? Pin
Owen3726-Jun-07 6:21
memberOwen3726-Jun-07 6:21 
AnswerRe: Any hints for VS 2005 in Vista? Pin
Owen3726-Jun-07 6:43
memberOwen3726-Jun-07 6:43 
GeneralRe: Any hints for VS 2005 in Vista? Pin
Madhu Rajagopalan26-Jun-07 7:10
memberMadhu Rajagopalan26-Jun-07 7:10 
GeneralRe: Any hints for VS 2005 in Vista? Pin
Owen3726-Jun-07 8:19
memberOwen3726-Jun-07 8:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160208.1 | Last Updated 22 Jun 2007
Article Copyright 2007 by Madhu Rajagopalan
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid