dotCover 2020.3 Help

Web Applications Using IIS

Control+Alt+K K

In Visual Studio:
ReSharper | Cover | Cover Application...

In dotCover standalone application:
File | Cover Application...

With dotCover, you can run coverage analysis for web applications on IIS servers.

Before you start profiling a web application make sure that:

  • IIS is installed on your computer.

  • Your web application is deployed to IIS.

  • Caching in your web browser is disabled. Alternatively, use Ctrl+F5 to manually refresh the page that is running the profiled application.

  • dotCover is run on behalf of Administrator.

To start a coverage run on IIS server

  1. Do one of the following:

    • In Visual Studio, press Control+Alt+K K or choose ReSharper | Cover | Cover Application... from the main menu

    • In dotCover standalone application, press Control+Alt+K K or choose File | Cover Application... in the menu.

  2. In the Coverage Configuration dialog that appears, choose IIS.
    Note that you must have Administrator permissions to start a coverage run on IIS server.

  3. Select the Open URL check box and type the URL of your web application. If necessary, change the browser that should be used.

  4. Optionally, select the Advanced check box to configure additional settings:
    • Click Edit Symbol Search Policy to specify where to search for PDB information.

    • Click Edit Filters to view existing and add new coverage filters. Note that the filters you add with this button are only applied to the current session.

  5. Click Run. dotCover will open the Coverage Controller dialog and then

    start the IIS server.

    You need then navigate to your application web page in a browser or press Ctrl+F5 to refresh the page.
    If the Run Browser checkbox is selected, dotCover will start the selected web browser or open a new web page tab at the specified URL.
  6. If the Collect profiling data from start check box was selected, the coverage run starts immediately. Otherwise, dotCover waits until you click Start in the Coverage Controller dialog. When the coverage run is started, you can record code coverage.

Last modified: 05 April 2021