Testing a Web Forms Application

This topic applies to presentation projects that implement a Web Forms application. Refer to Creating Web Forms Application Projects.

Procedure 1 – Testing Under the Debugger

Perform the following steps to test a Web Forms application under the debugger:

  1. In Solution Explorer, right-click the presentation project, and select Set as StartUp Project.

  2. From the Debug menu, select Start Debugging. Visual Studio automatically starts an instance of IIS Express to host your application and opens your default browser, directing it to the home page for your application.

If you encounter unexpected errors during your testing, refer to Troubleshooting in this help file.

Procedure 2 – Stopping the Debugger

Perform the following steps to stop testing a Web Forms application under the debugger:

  1. From the Debug menu, select Stop Debugging.

  2. In the Windows system tray (at the right end of your Taskbar), right-click the IIS Express icon and click Exit. If there are multiple instances of IIS Express running, ensure to stop each one.