PROBLEM mef with asp.net mvc 3 sample code

May 16, 2012 at 7:35 AM
Edited May 16, 2012 at 7:37 AM

Compiler Error Message: CS1705: Assembly 'FabrikamBooks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

Please, advise.


May 16, 2012 at 4:11 PM

Hi – it looks like you’re missing an assembly binding redirection in Web.config; you may need to grab the latest version here:

http://mef.codeplex.com/SourceControl/changeset/view/8b3d8438c870#oob%2fsample%2fMicrosoft.ComponentModel.Composition.Samples.FabrikamBooks%2fWeb.config

Hope this helps.

Nick

From: mefmef [email removed]
Sent: Wednesday, May 16, 2012 12:36 AM
To: Nicholas Blumhardt
Subject: PROBLEM mef with asp.net mvc 3 sample code [MEF:355962]

From: mefmef

Compilation Error

Compiler Error Message: CS1705: Assembly 'FabrikamBooks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

What gives?