1
Vote

When Publishing Results.xml I got an error: Could not find user NT AUTHORITY\NETWORK SERVICE in TFS

description

System.InvalidOperationException: Could not find user NT AUTHORITY\NETWORK SERVICE in TFS.
at KWatkins.NUnitTfs.Tfs2010.Publisher2010.ReadCurrentUsersIdentity() in C:\Users\Kevin Watkins\Documents\Visual Studio 10\Projects\NUnitTFS\NUnitTFS\Tfs2010\Publisher2010.cs:line 295
at KWatkins.NUnitTfs.Tfs2010.Publisher2010.PublishToTfs(XDocument trx) in C:\Users\Kevin Watkins\Documents\Visual Studio 10\Projects\NUnitTFS\NUnitTFS\Tfs2010\Publisher2010.cs:line 32
at KWatkins.NUnitTfs.Program.Main(String[] args) in C:\Users\Kevin Watkins\Documents\Visual Studio 10\Projects\NUnitTFS\NUnitTFS\Program.cs:line 29

comments

rbanks54 wrote Nov 24, 2011 at 3:15 AM

I assume you're running this on a different machine than the TFS server and the build account is using the Network Service account. If this is the case then check that TFS has the machine account added to the users for the project.

colinbo wrote Feb 20, 2012 at 12:14 AM

I think the bigger issue ask is the ability to specify credentials for connecting to the TFS server.