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

This article has been archived. It is offered "as is" and will no longer be updated.
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, log on to the following Microsoft Connect site by using a Microsoft Live ID or Hotmail account: After you log on, you can download the hotfix from the following link: If you cannot download the fix or if it does not resolve the problem, 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.
File nameFile versionFile sizeDateTime
Microsoft.VisualStudio.QualityTools.LoadTest.dll9.0.30729.122737,28002-Sept-2 00805: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.
More information
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 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.
think time redirects profiles

Article ID: 956397 - Last Review: 01/16/2015 05:21:00 - Revision: 3.0

Microsoft Visual Studio 2008 Professional Edition, Microsoft Visual Studio 2008 Standard Edition, Microsoft Visual Studio Team System 2008 Team Suite

  • kbnosurvey kbarchive kbexpertiseadvanced kbfix kbqfe KB956397