Mathias Olausson [MVP]

Issue with Team Build 2010 Beta 2 (on some localized machines): ‘Value cannot be null. Parameter name: path1’

without comments

I got this strange litte error a while back when I tried to run a newly created build definition: “Value cannot be null. Parameter name: path1”. Not much to go on in that message…


My configuration is a Windows 7 x64 and VS 2010 Beta 2 Ultimate with TFS Basic running locally. Build controller and agent is also running locally. First I thought this was a problem related to my x64 OS. But after testing this on a different box running x86 and getting the same result that obviously wasn’t it.

So after getting some great help from the product team it turned out to be an issue with a registry value that was affected by the current regional settings for the decimal separator. In Sweden we use comma (,) instead of th US-default period (.) and that’s what caused this error to occur.

So to solve this problem you can simply change the regional settings for the build agent to use period instead of your normal symbol.

Another option is to use an updated build template xaml file, which can be found here.

Written by Mathias Olausson

November 23rd, 2009 at 4:00 pm

Posted in 11561,12010

Leave a Reply