I installed TeamCity a while ago and it worked fine until I installed Visual Studio 2010. After installing it, I get the above error message and none my projects are working. Does anybody know how to fix this? Please note that I already set the %env.NAntHome% to the path of my nant bin folder. I also set the env.NAntHome variable in my buildAgent.properties file.