The version of clr.dll in the target does not match the one mscordacwks.dll was built for.

I was working on a VS 2010 solution and Win XP (No VS 2010 SP1).

Today morning, I did some changes and tried to build the solution when I came across this error:

” The version of clr.dll in the target does not match the one mscordacwks.dll was built for.”

Solution:

1. Restart VS 2010. In some scenario this helps

2. If solution 1 does not work, Install VS 2010 SP1 and go for a reboot.

Reason:

Doing some search on the Internet, I came to conclusion, its  parallel Window updates installation going on that conflict with VS 2010 existing installation.