After upgrading my project to Visual Studio 2010 and .Net 4.0, my app.config file generates these messages upon building the project:
Are you sure the conversion went ok? Maybe the correct target framework wasn't configured. Open your project properties and check if the target framework is actually .NET Framework 4 or .NET Framework 4 Client Profile.
.NET Framework 4
.NET Framework 4 Client Profile