The type Expression is defined in an assembly that is not referenced.

The type Expression<> is defined in an assembly that is not referenced. You must add a reference to assembly ‘System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=

If these errors occur on an Mvc page for no reason (worked fine before), recompile your solution and look for an error in the (often now long) compile error list. You will probably find a piece of code missing brackets, parameters or such. Small syntax errors can twist Visual Studio (or rather the compiler) to mislead you to an error that has nothing to do with the real error (like in this case, referencing System.Core).

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s