Mjv21 Mjv21 - 10 months ago 110
C# Question

Teamcity and MSTest Permissions

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.

Answer Source

I came across something that may be useful in the following thread.

Have a look, I hope it helps!

MSTEST PrincipalPermission