Found the error...
there was one of the paths in the project referencing a folder named "demographics new version". Once I've removed the spaces, things have started to work.
I believe VS2008 doesn't like folders with spaces on the names...