Enabling ASP Debugging (IIS 6.0)
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.
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".
To enable ASP debugging
In IIS Manager, double-click the local computer, right-click the Web Sites folder or an individual Web site folder, and then click Properties.
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.
Click the Home Directory tab, and then click Configuration.
Click the Debugging tab, and then select the Enable ASP server-side script debugging check box.
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.
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.
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
If you haven't done so already, install Microsoft® Script Debugger or Microsoft Visual InterDev® debugger.
From the Start menu, click Run, and then type the following: dcomcnfg
In the Console Root file, double-click Component Services, double-click Computers, double-click My Computer, and double-click DCOM Config.
Right-click Machine Debug Manager and then click Properties.
Click the Security tab.
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.
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.
Click OK to apply the changes.
To enable ASP debugging for Microsoft Visual Studio® .NET, you must add the Network Service account to the Debugger Users group.