Running a web site in Visual Studio

When there is an object on the web page, the web site can be run from Visual Studio. Proceed as follows:

  1. Either press F5 on the keyboard or click the Run Debug button in the toolbar:


    Alternatively, select Debug > Start Debugging:


  2. Visual Studio prompts a question, Debugging Not Enabled.

    Select one of the following options:

    • Modify the Web.config file to enable debugging: select this option to have Visual Studio edit the Web.config file. By selecting this option, the question is not prompted again, but can be re-enabled by setting the compilation debug parameter to false in the Web.config file, as follows:

      <compilation debug="false" strict="false" explicit="true">

    • Run without debugging: select this option to avoid editing the Web.config file.

    Click OK to verify the selection.

    Note: Debugging should be disabled in the Web.config file before deploying the web site in a production environment.

The web site is now displayed in an Internet browser.

Did this information help you?

Thanks for letting us know. Is there anything you'd like to tell us about this topic?

Can you tell us why it did not help you and how we can improve it?