FIX: Think times for redirect requests are ignored in Visual Studio 2008 Service Pack 1 even if the Think profile is turned on

Article ID: 956397 – Last Review: November 21, 2008 – Revision: 1.0

FIX: Think times for redirect requests are ignored in Visual Studio 2008 Service Pack 1 even if the Think profile is turned on

On This Page


Think times for redirect requests are ignored on a project that uses Microsoft Visual Studio 2008 Service Pack 1 even if the Think profile is turned on.


Hotfix information

A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that is described in this article. Apply it only to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Visual Studio 2008 service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft Web site: (

Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.


You must have Visual Studio 2008 Service Pack 1 installed to apply this hotfix.

Restart requirement

You do not have to restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

Collapse this tableExpand this table
File name File version File size Date Time
Microsoft.VisualStudio.QualityTools.LoadTest.dll 9.0.30729.122 737,280 02-Sept-2 008 05:12:54 PM


To work around this problem, follow these steps:

  1. Create a customized Web test plug-in by using the following code:

    using Microsoft.VisualStudio.TestTools.WebTesting;namespace TestProject1    // Change the namespace as appropriate{    public class WebTestPlugin_FixThinkTime : WebTestPlugin    {        private WebTestRequest m_currentPageOriginalRequest;        public override void PostRequest(object sender, PostRequestEventArgs e)        {            base.PostRequest(sender, e);            if (!e.Request.IsRedirectFollow)            {                m_currentPageOriginalRequest = e.Request;            }            else            {                if (m_currentPageOriginalRequest.ThinkTime == 0 && e.Request.ThinkTime != 0)                {                    m_currentPageOriginalRequest.ThinkTime = e.Request.ThinkTime;                }            }        }    }}

    For more information about how to create a Web test plug-in, visit the following Microsoft Developer Network (MSDN) Web site: (
  2. Add the Web test plug-in to each Web test.


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the Applies to section.


For more information about think times, visit the following MSDN Web site: (

For more information about how to work with load tests, visit the following MSDN Web site: (

For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:

824684  (/Feedback.aspx?kbNumber=824684/ ) Description of the standard terminology that is used to describe Microsoft software updates

Steps to reproduce the problem

  1. Create a test project on a computer that has Visual Studio 2008 SP1 installed.
  2. Create two Web tests, and then add a redirect request to one test.
  3. Set the Think Time value in the request properties to a specified value.
  4. Create a load test, and then add the two Web tests to the load test.
  5. Under Scenario Properties, set the value of the Think Profile option to On.
  6. Run the load test, and then check the running time for the test project in the test results.

  • Microsoft Visual Studio 2008 Professional Edition
  • Microsoft Visual Studio 2008 Standard Edition
  • Microsoft Visual Studio Team System 2008 Team Suite
kbexpertiseadvanced kbfix kbqfe kbhotfixserver KB956397


Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button

Leave a Reply

To prove that you're not a bot, enter this code
Anti-Spam Image