Microsoft KB Archive/325794

= HOW TO: Use Visual Studio to Debug and Manage a Commerce Site That Is Not .NET-Connected =

Article ID: 325794

Article Last Modified on 11/17/2003

-

APPLIES TO


 * Microsoft Commerce Server 2.0
 * Microsoft Commerce Server 2000 Standard Edition
 * Microsoft Commerce Server 2002 Standard Edition

-



This article was previously published under Q325794



IN THIS TASK
SUMMARY
 * Unpack Your Site
 * Create a New Web Project
 * Turn on Debugging on Your Site
 * Run Your Program Through Debugger

REFERENCES



SUMMARY
This step-by-step article describes how to set up a Commerce Server 2002 site that is not .NET-connected, how to run the site as a project, and how to debug the site by using Visual Studio 6.0.

back to the top

Unpack Your Site
To unpack your Web site, follow these steps:
 * 1) Open Commerce Server Manager.
 * 2) Expand the Commerce Server Manager node.
 * 3) Right-click Commerce Sites, click New, and then click UnPack Site.
 * 4) Click to select a site that is not .NET-connected (for example, Retail).
 * 5) Complete the unpacking process.

back to the top

Create a New Web Project

 * 1) Start Visual Interdev 6.0.
 * 2) On the File menu, click New Project, and then click New Web Project.
 * 3) Give the project a name that is different from the site name that you used in the &quot;Unpack Your Site&quot; section.
 * 4) Verify that Location is not set to wwwroot (you can use C:\Temp).
 * 5) Click to select Master Mode.
 * 6) Click to select Connect to an existing web.
 * 7) Click to select the site that you unpacked in the &quot;Unpack Your Site&quot; section.
 * 8) Click Finish.

back to the top

Turn on Debugging on the Site
 Open Commerce Server Manager. Expand the Internet Information Server (IIS) node. Expand the Web site that you created in the &quot;Create a New Web Project&quot; section. In the Web site tree, right-click the Commerce site that you created in the &quot;Unpack Your Site&quot; section. Set Execute Permissions to Scripts Only. Click Configuration. On the App Debugging tab, click to select both of the check boxes under Debugging Flags (verify that these options are turned on).</li> Apply the changes.</li> Stop and then restart the Web Service. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> On the Start menu, click Run.</li> Type IISRESET, and then press ENTER.</li></ol> </li></ol>

back to the top

Run Your Program Through Debugger

 * 1) Start Visual Interdev, and then load your project.
 * 2) Open Default.asp.
 * 3) Add a breakpoint in Sub Main.
 * 4) Click Go.
 * 5) The program starts and then opens to the breakpoint in the Visual Interdev Debugger.

back to the top

<div class="references_section">