This is our first time integrating MSTest into Teamcity and we're running into issues when building. Every single test fails with the error "Request for principal permission failed". Users running the test must be part of the administrators group, and on the build box the build agent is. We can emulate the errors by changing the spelling of the group name locally and building.
My question is, using msbuild, is it the agent running the team city services that needs to be part of the local administrators group or are we looking in the wrong place? Any help would be awesome.
I came across something that may be useful in the following thread.
Have a look, I hope it helps!