I struggled for a little while to get the MVC sample to work. I wanted to outline the changes I needed to make.
* changed all projects from .NET 4 => .NET 4.5
* removed the override for Save() in Customer, which just called base.Save() anyway - can't override b/c Save is not virtual in latest CSLA.
* removed csla dlls throughout the solution and readded them from the dependencies folder within the samples folder - added the Csla.Web.Mvc4 dll - before the reference was just an invalid csla.web.mvc
*Adjusted the assemblies element in web.config:
<assemblies>
<add assembly="System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="Csla.Web.Mvc4, Version=4.5.30.0, Culture=neutral, PublicKeyToken=93be5fdc093e4c30"/>
<add assembly="System.Web.Helpers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblies>
** Adjusted this element in the runtime element of web.config to the following
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-4.0.0.0" newVersion="4.0.0.0"/>
</dependentAssembly>
At this point I believe I am able to run the sample as expected. Just wanted to post this in case it was help to anyone.
Copyright (c) Marimer LLC