How to: Create a Performance Session for a Web Service Project

You can use the Performance Wizard to create a performance session for a Web service project or you can create a performance session manually. The profiler supports both WCF (Windows Communication Foundation) services and ASMX services (ASP.NET services).

Depending on User Access Permissions settings that an administrator has made available, an individual user might or might not have security permission to create a profiler session on the computer that hosts a Web service process.

Note

After you have created a performance session, you can review and change the Visual Studio project settings for the Web service project or change the settings of the performance session.

To create a performance session for a Web service project

  1. Open the ASP.NET Web service project in Visual Studio.

  2. On the Analyze menu, click Performance Wizard.

    In Which of the following available targets would you like to profile? select the web service project, and then click Next.

    The second page of the performance wizard is displayed.

  3. Specify a client for your service. From the What client should the profiler launch to execute your service list, select one of the following options.

    Visual Studio Service Test Form

    Opens a directory listing page for the Web service site using the ASP.NET Development Server.

    Internet Explorer

    Opens a directory listing for the Web service site using Internet Explorer.

    Other projects in your solution.

    If your solution contains other projects, each project is listed. Select a project Web site or application that calls the Web service.

    External program

    Starts the Windows program specified in the Program to launch text box with the arguments specified in the Command line arguments text box. Sets the working directory to the folder specified in the Working directory.

  4. Click Next.

    The third page of the performance wizard is displayed.

  5. Choose Sampling or Instrumentation to specify a profiling method, and then click Next.

    The final page of the performance wizard is displayed.

  6. Click Finish.

To create a performance session for a Web Service Project manually

  1. On the Analyze menu click New Performance Session.

    - or -

    On the Performance Explorer toolbar, click the New Performance Session button.

  2. In Performance Explorer, right-click Targets.

  3. In the Add Target Project window, select the check box next to the projects that you want to profile, and then click Ok.

  4. Click Finish.

    A performance session is created for the Web service.

To review or change the performance session properties

  • In Performance Explorer, right-click the session name, and then select Properties.

To override the Visual Studio project settings for a Web service

  1. In Performance Explorer, locate the performance session that contains the Web service that you want to profile.

  2. Right-click the Web service name and select Properties.

    The <project name> Properties Page is displayed.

  3. Select the Override Project Settings check box and make the changes.

See Also

Other Resources

Getting Started with Profiling Tools

Overviews (Profiling Tools)