Visual Studio 2010. BadImageFormatException? Resolved

This is an exception which occurs when we upgrade a project to a new version of VS Studio in win7 and later. To get rid of the problem follo...