Monday, August 29, 2011

VS 2010 Load Test - The ConnectionString property has not been initialized

Have you seen the below error while running a load test in VS 2010
---------------------------
Microsoft Visual Studio
---------------------------
Could not read result repository: The ConnectionString property has not been initialized..


Will display the runtime result instead of the repository result.
---------------------------
OK
---------------------------

 The reason is that you have selected "None" in the "Storage Type" property of the Run Settings. Instead select "Database" and you should not see this error.

Tuesday, August 23, 2011

TFS 2010 - The process cannot access the file 'data.coverage' because it is being used by another process

Have you came across a situation where your build is running indefinitely and when you see stop the build, the following error is thrown:

The process cannot access the file 'data.coverage' because it is being used by another process.

This happens only when code coverage is enabled in the testsettings being used in the build. Also, you will see this issue if one of your unit tests is having an issue. To know about the root cause of the issue with the unit test, you can do the following:
  • Go to the build agent box
  • Browse to the directory where the build agent "Sources", "Binaries" and "Test Results" folder are present
  • Open the trx file in the "Test Results" folder
  • Click on "Test run error"
You will see the exact cause of the issue here.

Also, if you dont want to Stop the build forcefully and allow it to finish the execution, please follow these steps:
  • Go to the build agent box
  • Go to Task Manager and kill the process "VSPerfMon.exe"
This will allow the build to complete gracefully but you will not see any unit test and code coverage results.

Thursday, August 18, 2011

ACS50016 Error- Windows Azure AppFabric Access Control Service

If you think you have configured the service identity correctly in ACS and have the right client certificates but still get below error, the cause is that your certificate format is not correct.
ACS50016: X509Certificate with subject 'CN=...' and thumbprint '...' does not match any certificates configured for Service identities

You should upload a .cer file with DER format for the service identity. If you uploaded a Base-64 format, it wont wont.