FIX: System.InvalidOperationException exception when you run a test on a test agent in Visual Studio 2010

Article translations Article translations
Article ID: 2700656 - View products that this article applies to.
Expand all | Collapse all

On This Page

Symptoms

Consider the following scenario:
  • You configure the cleanup script for a test agent in Microsoft Visual Studio 2010.
  • You configure a time-out value for a test in the test settings (.testsettings) file.
  • You run the test.
  • A time-out occurs when the cleanup script runs, and the test agent cancels the cleanup operation.
In this scenario, the test agent stops running test jobs. Additionally, you receive the following error message:
(QTAgentService.exe, PID '<process id>', Thread '<thread id>') AgentService: Exception while calling QueueTests on agent object: System.InvalidOperationException: Operation is not valid due to the current state of the object.

Cause

This issue occurs because the test agent process (Qtagent.exe) remains in an invalid state.

Resolution

Hotfix information

A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that this article describes. Apply it only to systems that are experiencing this specific problem.

To resolve this 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 website:
http://support.microsoft.com/contactus/?ws=support
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.

Prerequisites

To apply this hotfix, you must have Microsoft Visual Studio 2010 Service Pack 1 (SP1) installed.

Restart requirement

You do not have to restart the computer after you install the hotfix if the affected files are not being used at the time of installation. We recommend that you close all Visual Studio 2010-related components before you install the hotfix.

File information

The global 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 nameFile versionFile sizeDateTimePlatform
Codeduitestbuilder.exe10.0.40219.42076,91213-Sep-201222:06x86
Qtcontroller.exe.configNot applicable5,50523-Jul-201223:13Not applicable
Leviewer.exe10.0.40219.420118,36813-Sep-201222:06x86
Microsoft.teamfoundation.build.client.dll10.0.40219.420436,37612-Sep-20127:20x86
Microsoft.teamfoundation.build.controls.dll10.0.40219.4201,365,14413-Sep-201222:06x86
Microsoft.teamfoundation.client.dll10.0.40219.4201,595,52812-Sep-20127:20x86
Microsoft.teamfoundation.common.dll10.0.40219.420525,44812-Sep-20127:20x86
Microsoft.teamfoundation.common.library.dll10.0.40219.420335,00012-Sep-20127:20x86
Microsoft.teamfoundation.controls.dll10.0.40219.420938,64013-Sep-201222:06x86
Microsoft.teamfoundation.dll10.0.40219.420675,45612-Sep-20127:20x86
Microsoft.teamfoundation.lab.activities.dll10.0.40219.420772,76013-Sep-201222:06x86
Microsoft.teamfoundation.lab.client.dll10.0.40219.420153,23212-Sep-20127:20x86
Microsoft.teamfoundation.lab.uiutils.dll10.0.40219.420266,90413-Sep-201222:06x86
Microsoft.teamfoundation.lab.workflow.activities.dll10.0.40219.420440,49613-Sep-201222:06x86
Microsoft.teamfoundation.officeintegration.common.dll10.0.40219.420375,98413-Sep-201222:06x86
Microsoft.teamfoundation.officeintegration.project.dll10.0.40219.420517,29613-Sep-201222:06x86
Microsoft.teamfoundation.sync.mapping.dll10.0.40219.42072,34413-Sep-201222:06x86
Microsoft.teamfoundation.sync.provisioning.dll10.0.40219.420194,20813-Sep-201222:06x86
Microsoft.teamfoundation.testmanagement.activities.common.dll10.0.40219.420315,07213-Sep-201222:06x86
Microsoft.teamfoundation.testmanagement.activities.dll10.0.40219.4201,512,11213-Sep-201222:06x86
Microsoft.teamfoundation.testmanagement.activityruntime.dll10.0.40219.420219,84013-Sep-201222:06x86
Microsoft.teamfoundation.testmanagement.client.dll10.0.40219.420685,22412-Sep-20127:20x86
Microsoft.teamfoundation.testmanagement.client.themes.dll10.0.40219.4203,059,38413-Sep-201222:06x86
Microsoft.teamfoundation.testmanagement.client.wpfcontrols.dll10.0.40219.420257,73613-Sep-201222:06x86
Microsoft.teamfoundation.testmanagement.clientpackage.dll10.0.40219.42073,91213-Sep-201222:06x86
Microsoft.teamfoundation.testmanagement.common.dll10.0.40219.42034,47212-Sep-20127:20x86
Microsoft.teamfoundation.testmanagement.controller.dll10.0.40219.420121,00813-Sep-201222:06x86
Microsoft.teamfoundation.testmanagement.controls.dll10.0.40219.420496,30413-Sep-201222:06x86
Microsoft.teamfoundation.testmanagement.controls.wpfworkitemcontrols.dll10.0.40219.420100,05613-Sep-201222:06x86
Microsoft.teamfoundation.versioncontrol.client.dll10.0.40219.420706,21612-Sep-20127:20x86
Microsoft.teamfoundation.versioncontrol.common.dll10.0.40219.420233,12812-Sep-20127:20x86
Microsoft.teamfoundation.versioncontrol.controls.dll10.0.40219.4204,439,21613-Sep-201222:06x86
Microsoft.teamfoundation.workitemtracking.client.dll10.0.40219.420699,05612-Sep-20127:20x86
Microsoft.teamfoundation.workitemtracking.controls.dll10.0.40219.4201,215,15213-Sep-201222:06x86
Microsoft.teamfoundation.workitemtracking.proxy.dll10.0.40219.420390,83212-Sep-20127:20x86
Microsoft.visualstudio.coverage.analysis.4.0.dll10.0.40219.420147,62413-Sep-201222:06x86
Microsoft.visualstudio.coverage.analysis.dll10.0.40219.420143,00813-Sep-201222:06x86
Microsoft.visualstudio.coverage.interop10.0.40219.420553,62413-Sep-201222:06x86
Microsoft.visualstudio.qualitytools.agentobject.dll10.0.40219.420106,67213-Sep-201222:06x86
Microsoft.visualstudio.qualitytools.agentprocessmanager.dll10.0.40219.420104,64013-Sep-201222:06x86
Microsoft.visualstudio.qualitytools.codecoverage.dll10.0.40219.420146,09613-Sep-201222:06x86
Microsoft.visualstudio.qualitytools.common.dll10.0.40219.4201,355,42413-Sep-201222:06x86
Microsoft.visualstudio.qualitytools.controllerobject.dll10.0.40219.420277,68813-Sep-201222:06x86
Microsoft.visualstudio.qualitytools.datacollectionagentobject.dll10.0.40219.42037,07213-Sep-201222:06x86
Microsoft.visualstudio.qualitytools.executioncommon.dll10.0.40219.420482,48813-Sep-201222:06x86
Microsoft.visualstudio.qualitytools.testcasemanagement.dll10.0.40219.4201,280,19213-Sep-201222:06x86
Microsoft.visualstudio.qualitytools.tmi.dll10.0.40219.420398,48813-Sep-201222:06x86
Microsoft.visualstudio.teamfoundation.build.dll10.0.40219.420142,49613-Sep-201222:06x86
Microsoft.visualstudio.teamfoundation.dll10.0.40219.42093,84813-Sep-201222:06x86
Microsoft.visualstudio.teamfoundation.teamexplorer.dll10.0.40219.420799,92013-Sep-201222:06x86
Microsoft.visualstudio.teamfoundation.versioncontrol.dll10.0.40219.42059,07213-Sep-201222:06x86
Microsoft.visualstudio.teamfoundation.versioncontrol.dll10.0.40219.42059,58413-Sep-201222:06x86
Microsoft.visualstudio.teamfoundation.versioncontrol.dll10.0.40219.42061,12013-Sep-201222:06x86
Microsoft.visualstudio.teamfoundation.versioncontrol.dll10.0.40219.42063,68013-Sep-201222:06x86
Microsoft.visualstudio.teamfoundation.versioncontrol.dll10.0.40219.420940,21613-Sep-201222:06x86
Microsoft.visualstudio.teamfoundation.workitemtracking.dll10.0.40219.420460,99213-Sep-201222:06x86
Microsoft.visualstudio.teamsystem.integration.dll10.0.40219.420193,19213-Sep-201222:06x86
Microsoft.visualstudio.teamsystem.licensing.dll10.0.40219.42032,92813-Sep-201222:06x86
Microsoft.visualstudio.testtools.manualtest.common.dll10.0.40219.420813,23213-Sep-201222:06x86
Microsoft.visualstudio.testtools.uitest.codegeneration.dll10.0.40219.420155,84013-Sep-201222:06x86
Microsoft.visualstudio.testtools.uitest.common.dll10.0.40219.420178,34413-Sep-201222:06x86
Microsoft.visualstudio.testtools.uitest.extension.dll10.0.40219.420195,76013-Sep-201222:06x86
Microsoft.visualstudio.testtools.uitest.extension.ie.communication.interop.dll10.0.40219.420119,51213-Sep-201222:06x86
Microsoft.visualstudio.testtools.uitest.extension.ie.communication.interop.dll10.0.40219.420143,06413-Sep-201222:06x64
Microsoft.visualstudio.testtools.uitest.extension.ie.dll10.0.40219.420320,18413-Sep-201222:06x86
Microsoft.visualstudio.testtools.uitest.extension.ie.eventhelper.dll10.0.40219.42082,12813-Sep-201222:06x86
Microsoft.visualstudio.testtools.uitest.extension.ie64.eventhelper.dll10.0.40219.42082,13613-Sep-201222:06x86
Microsoft.visualstudio.testtools.uitest.extension.uia.dll10.0.40219.420110,26413-Sep-201222:06x86
Microsoft.visualstudio.testtools.uitest.playback.dll10.0.40219.42066,22413-Sep-201222:06x86
Microsoft.visualstudio.testtools.uitest.recorder.dll10.0.40219.420233,64813-Sep-201222:06x86
Microsoft.visualstudio.testtools.uitesting.dll10.0.40219.420391,32813-Sep-201222:06x86
Msdiff.dll10.0.40219.420485,46413-Sep-201222:06x86
Mtm.exe10.0.40219.420449,61613-Sep-201222:06x86
Qtagent.exe10.0.40219.42021,59213-Sep-201222:06x86
Qtagent.exe10.0.40219.42021,60013-Sep-201222:06x86
Qtagent32.exe10.0.40219.42021,60013-Sep-201222:06x86
Qtagent32.exe10.0.40219.42021,60813-Sep-201222:06x86
Qtagentservice.exe10.0.40219.420100,45613-Sep-201222:06x86
Tf.exe10.0.40219.420325,71213-Sep-201222:06x86

Status

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

Properties

Article ID: 2700656 - Last Review: November 1, 2012 - Revision: 1.0
Applies to
  • Microsoft Visual Studio 2010 Ultimate
Keywords: 
kbqfe kbhotfixserver kbfix kbsurveynew kbexpertiseadvanced KB2700656

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com