This error occurs when compiling an application with .Net 4.5, but then runs on a computer with only 4.0 installed.
In .Net 4.5, the ExtensionAttribute class was moved from System.Core to mscorlib. System.Core has a forwarder type that points to a new location in mscorlib. If you compile the application against 4.5, it expects to find ExtensionAttribute in mscorlib. If you run it against 4.0, you will get this exception because it actually lives in System.Core in 4.0
To fix this, deploy 4.5 to the server or make sure you create against 4.0
Jaredpar
source share