2015-09-08 107 views
0

我无法存储本地负载测试结果,也无法将Visual Studio Online的负载测试结果导入到Visual Studio 2015中。我之前可以执行此操作,在不同的机器,与Visual Studio 2013年无法将负载测试结果导入到Visual Studio 2015中

我得到的错误可以在这里看到:error screen-shot

和错误的事件日志:

(devenv.exe, PID 5824, Thread 59) WebLoadTestAdapter: Exception invoking SQL script loadtestresultsrepository.sql on SQL Server instance Data Source=(localdb)\v11.0;Initial Catalog=master;Integrated Security=True: A network-related or instance-specific error occurred while establishing a connection to SQL Server. 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: 50 - Local Database Runtime error occurred. Cannot create an automatic instance. See the Windows Application event log for error details.

我在这里操作指导( https://msdn.microsoft.com/en-us/library/ms182600(v=vs.140).aspx)如何设置负载te ST程序存储库,但它并没有帮助...

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) 
+0

我最近有一个类似的消息。点击“删除临时文件”按钮(如@ Vicky的答案所示),它对我很有用。 – AdrianHHH

回答

0

您需要:

1)。确保MACHINE-NAME \ SQLEXPRESS服务正在运行,并且您可以在VS中的服务器资源管理器中检查LoadTest2010数据库。 2)。确保本地测试结果存储针对MACHINE-NAME \ SQLEXPRESS服务中的LoadTest2010数据库:右键单击Load Test Editor中的负载测试,然后选择管理测试控制器。请确保您选择了正确的sql服务并且测试连接是成功enter image description here

+0

谢谢,由于某种原因,连接属性中的“服务器名称”被设置为localdb \ v11.0。将其更改为。\ SQLEXPRESS解决了问题。 –

相关问题