다음을 통해 공유


Enabling ASP Debugging

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1

Important

For security and performance reasons, do not enable debugging in a production environment.

You can set debugging options for ASP pages and control which types of error messages are sent. In order to enable debugging for ASP pages in worker process isolation mode, you must also configure the Access permissions and the Launch permissions for the debugger.

Important

You must be a member of the Administrators group on the local computer to perform the following procedure or procedures. As a security best practice, log on to your computer by using an account that is not in the Administrators group, and then use the runas command to run IIS Manager as an administrator. At a command prompt, type runas /User:Administrative_AccountName "mmc %systemroot%\system32\inetsrv\iis.msc".

Procedures

To enable ASP debugging

  1. In IIS Manager, double-click the local computer, right-click the Web Sites folder or an individual Web site folder, and then click Properties.

    Note

    Configuration settings made at the Web Sites level are inherited by all of the Web sites on the server. You can override inheritance by configuring the individual site or site element.

  2. Click the Home Directory tab, and then click Configuration.

  3. Click the Debugging tab, and then select the Enable ASP server-side script debugging check box.

  4. Click Send detailed ASP error messages to client if you want to send the client very detailed debugging information, or click Send the following text error message to client and type the text you want to send to the client.

  5. Click OK.

Because the worker process identity runs as the Network Service account in worker process isolation mode, you must follow these directions to debug ASP applications.

Note

It is recommended that you do not change the worker process identity to run as LocalSystem.

To configure Launch and Access permissions to enable ASP debugging in worker process isolation mode for Script Debugger and Visual InterDev

  1. If you haven't done so already, install Microsoft® Script Debugger or Microsoft Visual InterDev® debugger.

  2. From the Start menu, click Run, and then type the following: dcomcnfg

  3. In the Console Root file, double-click Component Services, double-click Computers, double-click My Computer, and double-click DCOM Config.

  4. Right-click Machine Debug Manager and then click Properties.

  5. Click the Security tab.

  6. Under Launch Permissions, click Edit, click Add, type Network Service, and then click OK. If you are joined to a domain, you might need to click Locations and change the location to the local computer.

  7. Under Access Permissions, click Edit, click Add, type Network Service, and then click OK. If you are joined to a domain, you might need to click Locations and change the location to the local computer.

  8. Click OK to apply the changes.

Note

To enable ASP debugging for Microsoft Visual Studio® .NET, you must add the Network Service account to the Debugger Users group.