简体   繁体   English

VS2008 负载测试错误(LoadTest 数据库)

[英]VS2008 Load Testing Error (LoadTest Database)

I have the LoadTest database setup on my machine.我在我的机器上设置了 LoadTest 数据库。 I can connect to it from my development box.我可以从我的开发箱连接到它。 No problems there.那里没有问题。

When I go to TEST -> Administer Test Controllers and test my connection, it succeeds.当我 go 到 TEST -> Administer Test Controllers 并测试我的连接时,它成功了。 I have the LoadTest db on my server and it does connect with Windows Authentication.我的服务器上有 LoadTest 数据库,它确实与 Windows 身份验证连接。

However, when running the load test I created, I get the following error:但是,在运行我创建的负载测试时,出现以下错误:

'The load test results database could not be opened. '负载测试结果数据库无法打开。 Check that the load test results database specified by the connect string for your Test Controller (or local machine) specifies a database that contains the load test schema and that is currently available.检查测试 Controller(或本地机器)的连接字符串指定的负载测试结果数据库是否指定了包含负载测试模式且当前可用的数据库。 For more information, see the Visual Studio Team System help topc 'About the Load Test Results Store'.有关详细信息,请参阅 Visual Studio Team System 帮助主题“关于负载测试结果存储”。 The connection error was: A network-related or instance-specific error occurred while establishing a connection to SQL Server.连接错误是:与 SQL 服务器建立连接时发生与网络相关或特定于实例的错误。 The server was not found or was not accessible.服务器未找到或无法访问。 Verify that the instance name is correct and that SQL Server is configured to allow remote connections (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)验证实例名称是否正确,并且 SQL 服务器配置为允许远程连接(提供者:SQL 网络接口,错误:26 - 错误定位服务器/指定实例)

What the heck, may I ask, is the deal here?请问,这到底是怎么回事?

Thanks in advance, Jason在此先感谢,杰森

FYI for everyone -- Must have an instance of SQL Server that is NOT the Express Edition.仅供大家参考——必须有一个不是 Express Edition 的 SQL 服务器实例。

I was also facing the same problem.我也面临同样的问题。 But i had made the following changes and its start working.但我做了以下更改并开始工作。

  1. The mistake which i had make was the test controller machine name and SQL Server test machine name was different.我犯的错误是测试 controller 机器名称和 SQL 服务器测试机器名称不同。 I had make the changes in load test and make the names same.我已经在负载测试中进行了更改并使名称相同。

  2. connect the sql server and enable its connection.连接 sql 服务器并启用其连接。

  3. Un-check all the Data and Diagnostics options which is in Test-> Edit test setting-> Local setting-> data and Diagnostics-> Uncheck all the check boxes and save it.取消选中测试-> 编辑测试设置-> 本地设置-> 数据和诊断-> 取消选中所有复选框并保存中的所有数据和诊断选项。

  4. Use Local Test Setting for running the load test.使用本地测试设置运行负载测试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM