Visual studio 2010 安装VS2013后,VS2010 web性能测试/负载测试停止工作

Visual studio 2010 安装VS2013后,VS2010 web性能测试/负载测试停止工作,visual-studio-2010,visual-studio-2013,Visual Studio 2010,Visual Studio 2013,我的web性能/负载测试在VS2010中一直运行良好,直到昨天我安装了VS2013。我没有升级我的项目/解决方案文件。我仍在尝试在VS2010中运行测试 当我尝试在本地运行webtest时,出现以下错误: Request failed: Exception occurred: Object reference not set to an instance of an object. at Microsoft.VisualStudio.TestTools.WebStress.WebTest

我的web性能/负载测试在VS2010中一直运行良好,直到昨天我安装了VS2013。我没有升级我的项目/解决方案文件。我仍在尝试在VS2010中运行测试

当我尝试在本地运行webtest时,出现以下错误:

Request failed: Exception occurred: Object reference not set to an instance of an object.

   at Microsoft.VisualStudio.TestTools.WebStress.WebTestCaseVariation.ProcessTransactionStarting(String transactionName, Boolean isForIncludedWebTest, Int32 declarativeWebTestItemId, Guid sourceWebTestId)
   at Microsoft.VisualStudio.TestTools.WebTesting.WebTest.BeginTransaction(String transactionName, Boolean isForIncludedWebTest, Int32 declarativeWebTestItemId, Guid sourceWebTestId)
   at Microsoft.VisualStudio.TestTools.WebTesting.WebTest.<GetEnumerator>d__0.MoveNext()
   at Microsoft.VisualStudio.TestTools.WebTesting.DeclarativeWebTest.<EnumerateRequests>d__0.MoveNext()
   at Microsoft.VisualStudio.TestTools.WebStress.WebTestCaseVariation.ExecuteNextTopLevelRequest()
我的项目仍在引用10.0.0.0版本的DLL,但Visual Studio会自动将其重定向到vs2013安装文件夹下的DLL,不知道为什么它会尝试加载12.0.0.0版本


非常感谢您的帮助。

项目中引用的Microsoft测试程序集可能已过时,因为您升级了Visual Studio。也许试着从你的项目中删除这些引用,然后在新的VS安装目录中找到更新的引用?实际上两个都试过了,但都没有成功。我可以从我的属性窗口中看到引用指向新位置:C:\Program Files(x86)\Microsoft Visual Studio 12.0\Common7\IDE\ReferenceAssembles\v4.0\Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll,版本号为10.0.0.0您是否有2010 Premium以及安装了哪种版本的VS 2013,例如,VS 2013专业版、高级版、终极版?终极版。我刚刚通过安装最新的VS2013更新修复了它。似乎这就是原因。实际上,它只解决了负载测试问题。我现在可以远程运行负载测试,而不会出现问题。但是,当尝试使用本地设置运行web性能测试时,仍然面临异常。
Exception   LoadTestException   1   Results collection stopped due to the following error: Could not load file or assembly 'Microsoft.VisualStudio.QualityTools.LoadTest, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)