Visual studio 2015 Can';t将负载测试结果导入Visual Studio 2015

Visual studio 2015 Can';t将负载测试结果导入Visual Studio 2015,visual-studio-2015,load-testing,sql-server-express,azure-devops,Visual Studio 2015,Load Testing,Sql Server Express,Azure Devops,我无法存储本地负载测试结果,也无法将负载测试结果从Visual Studio Online导入Visual Studio 2015。我以前能够在另一台机器上使用Visual Studio 2013完成这项工作 我得到的错误可以在这里看到: 事件日志中的错误为: (devenv.exe,PID 5824,线程59)WebLoadTestAdapter:异常 在SQL Server上调用SQL脚本loadtestresultsrepository.SQL 实例数据源=(localdb)\v11.0;

我无法存储本地负载测试结果,也无法将负载测试结果从Visual Studio Online导入Visual Studio 2015。我以前能够在另一台机器上使用Visual Studio 2013完成这项工作

我得到的错误可以在这里看到:

事件日志中的错误为:

(devenv.exe,PID 5824,线程59)WebLoadTestAdapter:异常 在SQL Server上调用SQL脚本loadtestresultsrepository.SQL 实例数据源=(localdb)\v11.0;初始目录=主目录;集成的 Security=True:发生与网络相关或特定于实例的错误 在建立与SQL Server的连接时。服务器不可用 找到或无法访问。验证实例名称是否正确 SQL Server配置为允许远程连接。 (提供程序:SQL网络接口,错误:50-本地数据库运行时) 出现错误。无法创建自动实例。请参阅Windows 有关错误详细信息的应用程序事件日志

我已经按照这里的说明()说明了如何设置负载测试响应,但是没有帮助

C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE>SQLCMD /S localhost\sqlexpress /i loadtestresultsrepository.sql
Changed database context to 'LoadTest2010'.
Msg 2714, Level 16, State 3, Server MACHINE-NAME\SQLEXPRESS, Procedure LoadTestTransactionResults2, Line 2
There is already an object named 'LoadTestTransactionResults2' in the database.
Msg 2714, Level 16, State 3, Server MACHINE-NAME\SQLEXPRESS, Procedure LoadTestPageResultsByNetwork2, Line 2
There is already an object named 'LoadTestPageResultsByNetwork2' in the database.
Msg 2714, Level 16, State 3, Server MACHINE-NAME\SQLEXPRESS, Procedure Prc_QueryLoadTestPageComparison, Line 2
There is already an object named 'Prc_QueryLoadTestPageComparison' in the database.
Msg 2714, Level 16, State 3, Server MACHINE-NAME\SQLEXPRESS, Procedure Prc_QueryLoadTestTestComparison, Line 2
There is already an object named 'Prc_QueryLoadTestTestComparison' in the database.
Msg 2714, Level 16, State 3, Server MACHINE-NAME\SQLEXPRESS, Procedure Prc_QueryLoadTestTransactionComparison, Line 2
There is already an object named 'Prc_QueryLoadTestTransactionComparison' in the database.
Msg 2714, Level 16, State 3, Server MACHINE-NAME\SQLEXPRESS, Procedure Prc_QueryComputedCounterComparison, Line 2
There is already an object named 'Prc_QueryComputedCounterComparison' in the database.
Msg 2714, Level 16, State 3, Server MACHINE-NAME\SQLEXPRESS, Procedure prc_QueryForMachinesInRun, Line 2
There is already an object named 'prc_QueryForMachinesInRun' in the database.
Msg 2714, Level 16, State 3, Server MACHINE-NAME\SQLEXPRESS, Procedure Prc_QueryLoadTestErrorComparison, Line 2
There is already an object named 'Prc_QueryLoadTestErrorComparison' in the database.

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)
您需要:

1) 。确保MACHINE-NAME\SQLEXPRESS服务正在运行,并且您可以在VS的服务器资源管理器中检查LoadTest2010数据库

2) 。确保本地测试结果存储以MACHINE-NAME\SQLEXPRESS服务中的LoadTest2010数据库为目标:右键单击负载测试编辑器中的负载测试,然后选择管理测试控制器。确保选择了正确的sql服务,并且测试连接成功。

我最近收到了类似的消息。单击“删除临时文件”按钮(如@Vicky的回答所示)后,它对我起了作用。谢谢,出于某种原因,连接属性中的“服务器名称”被设置为localdb\v11.0。将其更改为。\SQLEXPRESS解决了此问题。