Updating from MVC 3.0.0.0 to 3.0.0.1 Causes an error

So you need to update from MVC 3.0.0.0 to MVC 3.0.0.1 or should I say your windows update tool caused you to update.

Refer to this article

Microsoft Asp.Net MVC Security Update MS14-059 broke my build!

 

Then open package manager for nuget and make sure it is pointed to the correct project..

Usually your root mvc application

Then type in the console :  get-package

It will list out your installed packages

See if your framework number is: 3.0.50813.1 for Microsoft.AspNet.Mvc

if not, then you will need to update your solution projects

The COmmand is:  Install-Package Microsoft.AspNet.Mvc -Version {hit the tab key.. find the version you need – in my case 3.0.50813.1} and select it.. Run it and you should be done…

Note you might get a sql lite issue.. See https://warrenlafrance.com/2016/03/08/sql-lite-error/

 

SQL LITE ERROR

If you get a sql lite error like this:

Could not load file or assembly ‘System.Data.SQLite’ or one of its dependencies. An attempt was made to load a program with an incorrect format.
Open IIS Manager
Make sure the application Pool is set to allow 32 bit applications under advanced settings.

 

AutoMapper InjectFrom value mapper

FYI Value injector doesn’t support automatic collection mapping like AutoMapper but you could use a simple LINQ expression and operate on each element:
IEnumerable<Category> categoryList = categoryService.GetAll();
List<CategoryViewModel> viewModelList = categoryList
 .Select(x => new CategoryViewModel().InjectFrom(x)).Cast<CategoryViewModel>()
 .ToList();