User-2019647434 posted
I have written simple unit test for my rest api which is passed succesfully in my local machine but if i am running it in visual studio team services(vsts) it fails with following error message....Please help
2016-08-27T08:51:16.5118002Z ##[error]Error Message:
2016-08-27T08:51:16.5118002Z ##[error] Test method MyWebApi.Controllers.Tests.EmployeeInfoApiControllerTests.GetTest threw exception:
2016-08-27T08:51:16.5128011Z ##[error]System.IO.FileNotFoundException: Could not load file or assembly 'MyWebApi, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.WRN: Assembly binding
logging is turned OFF.
2016-08-27T08:51:16.5128011Z ##[error]To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
2016-08-27T08:51:16.5128011Z ##[error]Note: There is some performance penalty associated with assembly bind failure logging.
2016-08-27T08:51:16.5138007Z ##[error]To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
2016-08-27T08:51:16.5138007Z ##[error]
2016-08-27T08:51:16.5138007Z ##[error]Stack Trace:
2016-08-27T08:51:16.5148007Z ##[error] at MyWebApi.Controllers.Tests.EmployeeInfoApiControllerTests.GetTest()
2016-08-27T08:51:16.5558013Z Results File: C:\a\1\TestResults\buildguest_TASKAGENT5-0001 2016-08-27 08_51_16.trx
2016-08-27T08:51:16.5568211Z Total tests: 2. Passed: 1. Failed: 1. Skipped: 0.
2016-08-27T08:51:16.5578015Z ##[error]Test Run Failed.
2016-08-27T08:51:16.5588008Z Test execution time: 1.1132 Seconds
2016-08-27T08:51:16.6128007Z ##[error]System.Exception: VSTest Test Run failed with exit code: 1
2016-08-27T08:51:16.6258010Z Publishing Test Results...