visual-studio - Visual Studio 2010 测试 Controller 负载测试数据库配置失败?

标签 visual-studio visual-studio-2010 load-testing

我正在尝试为测试 Controller /测试代理安装 Visual Studio 2010 代理,以便我可以在本地计算机上创建负载测试。尝试安装测试 Controller 时,我在配置摘要中收到以下消息

enter image description here

From the installation log I found the following error messages:
The existing connection string for controller MyComputerName:6901 is {this is blank}

System.MissingMethodException: Method not found: 'Boolean Microsoft.VisualStudio.TestTools.WebStress.LoadTestDatabaseCounterWriter.IsDatabaseUpgradeFromRTMNeeded(System.Data.SqlClient.SqlConnection)'. at Microsoft.VisualStudio.TestTools.ConfigCore.TestControllerHelper.CreateAndUpgradeLoadTestSchemaIfRequired(String loadTestConnectionString, String directoryContainingSchemaFile) at Microsoft.VisualStudio.TestTools.ConfigCore.ControllerConfiguration.UpdateLoadTestDatabase(ControllerConfigurationUpdatePack updatePack, DelegateStatusUpdate statusListener)


Failed to configure load test database.

最佳答案

问题解决了!
简而言之,仅缺少 Visual Studio 2010 Service Pack 1,并且 DLL 不包含由测试 Controller 配置工具调用的方法。

解决方案:安装 VS 2010 Service Pack 1。
原因:Microsoft.VisualStudio.QualityTools.LoadTest.DLL不包含配置工具调用的Database checker方法,所以抛出异常,配置失败。升级到 SP1 后,DLL 更新成功,可以在那里找到缺少的方法。

关于visual-studio - Visual Studio 2010 测试 Controller 负载测试数据库配置失败?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7026458/

相关文章:

c++ - 找出应用程序挂起的位置

java - 磨床连接错误

c++ - Visual Studio 2010 中 shared_ptr 的编译器错误

mysql - 加入两个子查询抛出错误

c++ - 在 Visual Studio 2017 中找不到 nuget 包管理器?

.net - 系统类型加载异常: 'Method ' get_SerializationSettings' when using KeyVault from Load Test Plugin

performance-testing - 在 Web 应用程序中测量页面呈现/加载时间的重要性

c - 继续收到 "too many initializers"错误

.net - 自动将源代码文件移动到 Visual Studio 2008/2010 中的项目文件夹,这些文件作为链接添加并驻留在项目文件夹之外

c# - 如何在Windows Phone 7 中释放应用程序缓存?