Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


May 2001

Configuring IIS for Visual InterDev 6.0 ASP Debugging

RSS
Subscribe to Windows Web Solutions | See More Active Server Pages (ASP) Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

Visual InterDev debugging makes development easier

[Editor's Note: Each month, this column discusses various aspects of the advanced administration of e-business sites. This month's column examines the setup and configuration of IIS servers for developer debugging.]

We recently walked into a light-hearted discussion among our fellow network and infrastructure folks. They were competing with one another who was expert in more obscure technologies. "I know Nortel Networks ATM switches," one said. "I've mastered Microsoft Application Center 2000 Request Forwarding," said another. "We figured out how to get debugging to work with Microsoft Visual InterDev on IIS." They all burst out laughing. Why? Because historically, setting up Visual InterDev debugging on IIS has been difficult, and the technology is broken in many spots. In fact, many service packs for Windows NT 4.0 have dedicated fixes for Microsoft Visual Studio (VS) debugging. (Visual InterDev, Microsoft's Web page development tool, ships with VS.)

Setting up an IIS server for debugging is a lot easier now because of better documentation and service pack hotfixes. If you want to be the hero of the developers in your shop, follow the simple steps we provide here on a test box. Then, you can let your developers know that you're available as a resource to help them set up Visual InterDev 6.0 debugging on their local development server environments.

Setting Up Visual InterDev for Remote Debugging
Before we show you how to set up Visual InterDev, note that you should never configure a production Internet server for VS debugging because doing so adds more points of entry for an attacker. You should complete this process only on development servers that are behind your firewall.

To configure IIS for Visual InterDev debugging, you need VS 6.0 Enterprise Edition and administrative privileges for the machine on which IIS is running. In this example, you set up IIS for local debugging on a developer machine (the same computer on which you've installed VS—not an IIS server that runs remotely on a different machine).

The easiest way to correctly set up Visual InterDev and IIS is to go through the steps required for remote debugging. Visual InterDev Help is an excellent resource, so have the Help file ready, or print the remote debugging setup section before you start. Alternatively, you can find the same document on the Microsoft Developer Network (MSDN) Web site. To set up remote-machine debugging, follow these steps:

  1. On the server machine, start the VS setup program.
  2. Under Add/Remove Options, select Server Applications and Tools.
  3. Select Launch BackOffice Installation Wizard, then click Install, as Figure 1 shows.
  4. When the BackOffice Business Solutions Wizard appears, select the Custom option, then click Next.
  5. Click Next until you see a list of BackOffice programs to install. Clear the check boxes for all the programs except Remote Machine Debugging, FrontPage Server Extensions, and Visual InterDev Server, as Figure 2 shows.

You must reboot your server when you've completed these steps. After you've rebooted, you must install the latest VS service pack, which is currently Service Pack 5 (SP5). You can download the service pack from http://msdn.microsoft.com/vstudio/sp/vs6sp5. Reboot again after you've installed the service pack.

Creating a Web Application to Debug
Now that you've set up Visual InterDev, you can use it to create a project that you can use for debugging. Follow these steps:

  1. Start Visual InterDev to call the New Project Wizard. Under Visual InterDev Projects, choose New Web Project, as Figure 3, page 8, shows.
  2. Name the project (or use the default—Project1), then click Open to start the Web Project Wizard.
  3. On the Specify a server and mode page, which Figure 4, page 8, shows, select the IIS server on your local machine (e.g., ClydeRs) from the What server do you want to use drop-down list. Select the Master mode option, and click next.
  4. On the Specify your Web page, select the Create a new Web application option and use the project name you designated in Step 2.
  5. Click Next, then click Finish. Visual InterDev creates a virtual directory on your IIS server. Now you have two copies of your project, which Visual InterDev saved in directories with similar names: \projectname\projectname_local and \inetpub\wwwroot\projectname.
  6. Modify the virtual directory Visual InterDev just created by exiting Visual InterDev and starting Internet Services Manager (ISM—for IIS 5.0) or opening the Microsoft Management Console (MMC) Internet Information Server snap-in (for IIS 4.0).
  7. From ISM or the Internet Information Server snap-in, right-click your virtual directory's name, then select Properties.
  8. On the Directory tab, click Configuration.
  9. Click the App Debugging tab, which Figure 5 shows, and select the Enable ASP server-side script debugging and Enable ASP client-side script debugging check boxes. Click OK twice.
  10. If you want to modify security to No Anonymous Access (or another security model) on this virtual directory, right-click your virtual directory's name, select Properties, and click the Directory Security Tab. Under Anonymous access and authentication control, click Edit. Under Authentication Methods, clear the Anonymous Access check box.
  11. ISM or the Internet Information Server snap-in will now find and fix any discrepancies in its Server Extensions configuration. Right-click your virtual directory's name, and select All Tasks, Check Server Extensions. The Check Web dialog box appears with the message Figure 6 shows; click Yes.
  12. Exit ISM or the Internet Information Server snap-in. Use Windows Explorer to drag the Web application's folders and files to the newly created directory.
   Previous  [1]  2  Next 


Reader Comments
Great article. I configured the IIS and Visual InterDev on my Win2k PC and since then, I have abandoned lot of guess-work and numerous Response.Write() statements.

Hope to see some more good ones on the site soon.

Mustansir July 26, 2002


Hi,

I am a software engineer.

It is a good article but it did not work even after i followed all the steps mentioned by you.

I am using Windows XP professional as Operating system.

As per article i have installed Server Applications and Tools and installed VS service pack 5.

Now whenever i started a new project the first dialog which prompts to enter server name doesn't show my IIS server name in the combo box.IIS is installed on my machine.

When i enter my IIS server name (which is same my computer name) in the combo box and press next then for few seconds it shows a message contacting web server and prompt me to enter password for <domainname>\ishwar.jindal account.
Now even after entering my domain account password it keep on prompting me to enter password.

I have tried entering my IIS server name, localhost, 127.0.0.1 but it still prompts me to enter the password for domain account.

Why it is promting me enter the password for my domain account when the IIS is installed on my machine and then why it is not accepting when i am giving the passowrd.?

Ishwar Jindal October 30, 2003


Great article, at last I can configure proper site debugging without the need to resort to inserting alert statements, or Response.Write()'s.

Robert December 03, 2003


I am having the same problem as Ishwar Jindal.

Oh well....

Anonymous User December 06, 2004


You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
PsExec

This freeware utility lets you execute processes on a remote system and redirect output to the local system. ...

Ballmer: Xbox 360 'an Unqualified Success'

It's a product line that has consumed tens of billions of dollars of R&D, money that can never be recouped. The most recent version of the product is so endemically buggy that it has suffered from an historic product recall whose value exceeds $1 billion ...

More fun TechEd 2005 Resources

Kevin points out some more TechEd resources ...


IIS and Web Administration Whitepapers The Five Secrets to Controlling Your SharePoint Environment

Extended Validation SSL Certificates

Related Events Check out our list of Free Email Newsletters!

IIS and Web Administration eBooks Keeping Your Business Safe from Attack: Monitoring and Managing Your Network Security

Related IIS and Web Administration Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.

Job Openings in IT


ADS BY GOOGLE SPONSORED LINKS FEATURED LINKS

Microsoft Exchange & Windows Connections event returns to Las Vegas Nov 10 - 13
Connections returns to Las Vegas for this exciting event where each attendee will receive SQL Server 2008 standard with 1 CAL. Co-located with Microsoft ASP.NET, SQL Server, and SharePoint Connections with over 250 in-depth sessions.

Free Online Event! Virtualization:Get the Facts!
Register now and attend this free, live in-depth online conference on November 13 and 20, 2008, produced by Windows IT Pro. All registrants are eligible to receive a complimentary one-year digital subscription to Windows IT Pro (a $49.95 value)!

Check Out Hyper-V Video on ITTV
Watch Karen Forster's interview on Hyper-V's performance on ITTV.net.

Ease Your Scripting Pains with the Flexibility of PowerShell!
Join MVP Paul Robichaux on December 11, 2008 at 11:00 AM EDT as he equips you with PowerShell basics in 3 introductory lessons, each followed by a live Q&A session—all on your own computer!

PASS Community Summit 2008 in Seattle on Nov 18-21
The don’t-miss event for Microsoft SQL Server Professionals. Register now and you’ll enjoy top-notch Microsoft and Community speakers and more.



Speed Up Your PC!
Try Diskeeper 2008 with InvisiTasking Free Now!

Get Protected -- Data Protection Manager 2007
Protect your virtualized environment with Data Protection Manager

Agent-less Remote Backup Service, Free 30 Day Trial
Award winning remote backup service at a competitive price with no min GB/month. Sign up Now!

ScriptLogic Cartoon Caption Contest
Submit your caption and you will be entered to win $198.42

Order Your SQL Fundamentals CD Today!
Learn how to use SQL Server, understand Office integration techniques and dive into the essentials of SQL Express and Visual Basic with this free SQL Fundamentals CD.

List Your Products in Our Technology Resource Directory
Don't miss the chance to post your free listing in this comprehensive directory for IT and developer professionals, powered by Windows IT Pro. But hurry! Deadline ends Oct. 9.
Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing