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

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…

clip_image002

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.

Leave a Reply

Your email address will not be published. Required fields are marked *


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>