I am attempting to install Visual Studio 2010 Agents for Test Controller / Test Agents so I can create Load Tests on my local machine. When attempting to install the Test Controller I recieve the following message in the configuration summarry
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.
Problem solved!
Briefly, only Visual Studio 2010 Service Pack 1 is missing, and a DLL doesn't contain a method that is invoked by the Test Controller Configuration Tool.
Solution: install VS 2010 Service Pack 1.
Reason: Microsoft.VisualStudio.QualityTools.LoadTest.DLL does not contain a Database checker method that is invoked by the configuration tool, so an exception is thrown, and the configuration is failing. After upgrading to SP1, the DLL updates successfully and the missing method can be found there.
Related
For a while, I could not figure out why my test application named "myappdotnet" would not debug in Visual Studio (2019) with IIS Express. When I would try to run it, I would get this error in the browser:
HTTP Error 500.0 - ANCM In-Process Handler Load Failure
I discovered that it's related to the name of the project: "myappdotnet.csproj". I found that any project name I created that ends with dotnet would cause this error 500.0. Removing the dotnet from the name, such as "myapp.csproj", allowed debugging with IIS Express without the error.
Why is that the case? Are those ending characters reserved? Is this documented anywhere?
I have a WCF Service project that is failing to load in Visual Studio 2019. When I try to reload the project from the Solution Explorer I get the error:
Value does not fall within the expected range
Any ideas what might be causing this?
The fix is the same as the one I mentioned here:
Web API project fails to load in Visual Studio 2019 - error: 'The method or operation is not implemented'
With <UseIIS>True</UseIIS> in the proj file, I had to make sure that the <IISUrl> value pointed to a virtual directory I had set up on IIS.
Another cryptic error from VS!
I'm trying to export my test cases from Microsoft Test Manager 2013 and i tried various tools but none is working.
I'm getting 2 different errors:
1) Must install microsoft.teamfoundation.build.client version 11.0.0.0 in the GAC
2) Object Reference not set to an instance of an object. Application has encountered Fatal Error. Please contact your System Administrator.
In case 2, i'm capable of connecting to the TFS. I get the error once i try to connect to the project.
Any ideas?
I'm getting the following error when trying to run a coded ui test from MTM:
Unit Test Adapter threw exception: Method not found: 'Void Microsoft.VisualStudio.TestTools.UITest.Extension.UITestUtilities.AddAssemblyResolveHandler()'..
All I'm looking for is a hint as to why this is happening, my project references look like this:
I'm using Visual Studio 2013 Update 4, The Test Controller and Agent too are 2013 Update 4.
I can queue a build, but when I try and run a test against the build using MTM, I get this error.
EDIT, Also using net 4.5.1.
EDIT 2: Everything runs locally in dev environment when tests are kicked off from Visual Studio. It's once I kick off the tests through MTM -> Controller -> Agent where the problem persists. The exact same message is thrown regardless of the test.
Check if the test run has all the necessary dlls in the test run directory, in the machine where test controller runs check the directory
"C:\Users\ username \appdata\Local\VSEQT\QTController\ testrunid \Deployment\"
I'm developing a Visual Studio Integration Package. When I try to run the Unit Tests that are included in the unit test project that is included in the template I get the following failure on the first test:
The test adapter 'VsIdeHostAdapter'
threw an exception while running test
'MenuItemCallback'. Call was rejected
by callee. (Exception from HRESULT:
0x80010001 (RPC_E_CALL_REJECTED))
It's intermittent- a new instance of Visual Studio always spins up, then sometimes it works but usually fails.
Turns out this is a known issue- the built-in tests have some problems.