MVC3 Deployment Checklist

by Matt 5. December 2011 11:14

This is more for my reference than anything, but every one in a while I deploy a new MVC 3.0 app that doesn't have the framework installed on the server.

On first deploy, I invariably get this error:

Could not load file or assembly 'System.Web.WebPages.Razor, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies

So, future self, this is your reference.  The following libraries need to be bin-deployed:

  • System.Web.Mvc
  • System.Web.Helpers
  • System.Web.Razor
  • System.Web.WebPages
  • System.Web.WebPages.Deployment
  • System.Web.WebPages.Razor
  • Microsoft.Web.Infrastructure
  • WebMatrix.Data

However, with MVC4 in the pipes, I may not actually ever need to reference this post…

Tags: ,
Categories: .NET | MVC