Getting the MVC sample to work with the latest download

Getting the MVC sample to work with the latest download

Old forum URL:

skagen00 posted on Thursday, July 11, 2013

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:

        <add assembly="System.Web.Mvc, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <add assembly="System.Web.Abstractions, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add assembly="System.Web.Routing, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add assembly="System.Data.Linq, Version=, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="Csla.Web.Mvc4, Version=, Culture=neutral, PublicKeyToken=93be5fdc093e4c30"/>
        <add assembly="System.Web.Helpers, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add assembly="System.Web.WebPages, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

** Adjusted this element in the runtime element of web.config to the following

        <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
        <bindingRedirect oldVersion="" newVersion=""/>

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