Upgrade to visual studio 2010 and .NET Framework 4.0

This is the upgrade of solution in visual studio 2010