I found this problem after upgrading a C# application from Visual Studio 2005 to Visual Studio 2008 and wanted to share the solution.
When running the application after compiling it in 2008 I get this error:
The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log for more detail.
The application event is:
Event ID: 10
Activation context generation failed for "D:\Sample.exe".Error in manifest or policy file "D:\Sample.exe.Config" on line 2. The application config file root element must be configuration.
Here is line 2 in the Config file:
The solution is to change this line to: