Error with VS2010 build runner "Value cannot be null"

Hello,

I've run into the following error (below). It only happens on one of my build agents. I am running TeamCity 5.1.5 (we are upgrading soon). I am using Nunit and Ncover. What would cause this and how do I fix it?

One thing I noticed in the following is the reference to "c:\BuildAgent\work\" the build agent is not installed there, it's installed on "D:\BuildAgent\work" (which also shows up below). I've checked the buildAgent.properties file and it hasthe correct work and temp dirs. I also check the Agent configuration on the TeamCity server. It looks correct there as well.

workDir=D\:\\BuildAgent\\work
tempDir=D\:\\BuildAgent\\temp




[22:00:33]: Project "McKesson.TPP.RuleEngine.sln.teamcity.patch.tcprojx" (TeamCity_Generated_Build;TeamCity_Generated_NUnitTests target(s)): (6m:08s)
[22:06:38]: Value cannot be null. Parameter name: path    at System.IO.Path.GetFullPath(String path)    at JetBrains.TeamCity.Utils.Runtime.ProcessRun.CreateArguments(String executable, PlatformVersion env, PlatformType platform, String[] args) in c:\BuildAgent\work\e34bdcb45e12f223\src\Utils\src\Runtime\ProcessRun.cs:line 54    at JetBrains.TeamCity.NUnitCommon.PlugableRunFactory.RunProcessAsPlugable.Run() in c:\BuildAgent\work\e34bdcb45e12f223\src\NUnitCommon\src\PlugableRunFactory.cs:line 34    at JetBrains.BuildServer.NAntLoggers.NUnitLauncher2.ExecuteTasks(ITestRunArguments arguments, IPlugableTestRunner[] plugRuns) in c:\BuildAgent\work\e34bdcb45e12f223\src\NUnitBootstrap\src\NUnitLauncher2.cs:line 187    at JetBrains.BuildServer.NAntLoggers.NUnitLauncher2.Run2(String[] args) in c:\BuildAgent\work\e34bdcb45e12f223\src\NUnitBootstrap\src\NUnitLauncher2.cs:line 124    at JetBrains.BuildServer.NAntLoggers.NUnitLauncher2.Run(String[] args) in c:\BuildAgent\work\e34bdcb45e12f223\src\NUnitBootstrap\src\NUnitLauncher2.cs:line 45
[22:06:41]: [Project "McKesson.TPP.RuleEngine.sln.teamcity.patch.tcprojx" (TeamCity_Generated_Build;TeamCity_Generated_NUnitTests target(s)):] D:\BuildAgent\work\Apollo.501.Components.Debug\RuleEngine\McKesson.TPP.RuleEngine.sln.teamcity.patch.tcprojx(17, 5): D:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe "@@" D:\BuildAgent\temp\buildTmp\tmpA93C.tmp exited with code -1.


thanks,
Fred
1 comment
Comment actions Permalink

It appears the error is coming from the NUnit launcher for the parameter "path". How is the value generated for that? and how can I fix it?


[2012-02-07 22:06:28,359] out - TeamCity_Generated_NUnitTests:
[2012-02-07 22:06:28,359] out -   D:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe "@@" D:\BuildAgent\temp\buildTmp\tmpA93C.tmp
[2012-02-07 22:06:38,788] out - 2012-02-07 22:06:38,422 [4500] ERROR JetBrains.BuildServer.NAntLoggers.NUnitLauncher2 - Value cannot be null.
[2012-02-07 22:06:38,788] out - Parameter name: path
[2012-02-07 22:06:38,788] out - System.ArgumentNullException: Value cannot be null.
[2012-02-07 22:06:38,788] out - Parameter name: path
[2012-02-07 22:06:38,788] out -    at System.IO.Path.GetFullPath(String path)
[2012-02-07 22:06:38,788] out -    at JetBrains.TeamCity.Utils.Runtime.ProcessRun.CreateArguments(String executable, PlatformVersion env, PlatformType platform, String[] args) in c:\BuildAgent\work\e34bdcb45e12f223\src\Utils\src\Runtime\ProcessRun.cs:line 54
[2012-02-07 22:06:38,788] out -    at JetBrains.TeamCity.NUnitCommon.PlugableRunFactory.RunProcessAsPlugable.Run() in c:\BuildAgent\work\e34bdcb45e12f223\src\NUnitCommon\src\PlugableRunFactory.cs:line 34
[2012-02-07 22:06:38,788] out -    at JetBrains.BuildServer.NAntLoggers.NUnitLauncher2.ExecuteTasks(ITestRunArguments arguments, IPlugableTestRunner[] plugRuns) in c:\BuildAgent\work\e34bdcb45e12f223\src\NUnitBootstrap\src\NUnitLauncher2.cs:line 187
[2012-02-07 22:06:38,788] out -    at JetBrains.BuildServer.NAntLoggers.NUnitLauncher2.Run2(String[] args) in c:\BuildAgent\work\e34bdcb45e12f223\src\NUnitBootstrap\src\NUnitLauncher2.cs:line 124
[2012-02-07 22:06:38,788] out -    at JetBrains.BuildServer.NAntLoggers.NUnitLauncher2.Run(String[] args) in c:\BuildAgent\work\e34bdcb45e12f223\src\NUnitBootstrap\src\NUnitLauncher2.cs:line 45
[2012-02-07 22:06:41,250] out - D:\BuildAgent\work\Apollo.501.Components.Debug\RuleEngine\McKesson.TPP.RuleEngine.sln.teamcity.patch.tcprojx(17,5): error : D:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe "@@" D:\BuildAgent\temp\buildTmp\tmpA93C.tmp exited with code -1.
[2012-02-07 22:06:41,254] out - Done Building Project "D:\BuildAgent\work\Apollo.501.Components.Debug\RuleEngine\McKesson.TPP.RuleEngine.sln.teamcity.patch.tcprojx" (TeamCity_Generated_Build;TeamCity_Generated_NUnitTests target(s)) -- FAILED.
[2012-02-07 22:06:41,255] out -


thanks,
Fred
0

Please sign in to leave a comment.