Make sure that the file is a valid .NET Framework assembly.

Mar 25, 2010 at 10:34 PM

The error appears on this line

Cjc.ChromiumBrowser.WebBrowser browser = new Cjc.ChromiumBrowser.WebBrowser();

The type initializer for 'Cjc.ChromiumBrowser.WebBrowser' threw an exception.
InnerException: Make sure that the file is a valid .NET Framework assembly.

A guy here http://www.codeproject.com/KB/WPF/MefFX.aspx used this piece of code in Visual Studio.NET to solve this problem.
How can we do the same or solve this error in Visual Studio 2008.