I know this is an old post, but I found it while I was looking for a
solution to that error message and I hope this helps someone =). I also
had this problem in only one machine (mine), so it was not in the
source code. My solution was simple:
Install the Service Pack 1 for .NET Framework 2.0