SwissChecklist

Checklist: Bin Deploying ASP.NET MVC 3

When you build an ASP.NET MVC 3, or you want to use the Razor templating engine in an ASP.NET website (for example in DotNetNuke), there are a set of assemblies (bin files)you'll need to include with your application/web to run properly, unless they are installed in the Global Assembly Cache (GAC) on the server.
  • The easy way

    Show Details Show Substeps Show Substeps Show Substeps
  • Install the Razor Host Module. It will install the required assemblies for Razor automatically.

    Show Details Show Substeps Show Substeps Show Substeps
    To enable Razor in DotNetNuke, there is an easy way:

    Go to the Admin -> Extensions page and select "Available Extensions". Install the Razor Host module. This will also install all required razor components.

    Otherwise, if you don't want to install this module, you can follow the next steps.
  • Installing Razor in your Web (Bin-Deployment)

    Show Details Show Substeps Show Substeps Show Substeps
  • Open the following folder on your local development machine where the assemblies are installed

    Show Details Show Substeps Show Substeps Show Substeps
    • C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\Assemblies
    • C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 3\Assemblies

    Note: We're assuming you have a developer machine and you're already developing with Razor, all you're doing is deploying it. If you don't have a development machine with the newest .net libraries installed, you won't find these folders.
  • Copy all the following files to the bin folder of your web application

    Show Details Show Substeps Show Substeps Show Substeps
  • Microsoft.Web.Infrastructure.dll

    Show Details Show Substeps Show Substeps Show Substeps
  • System.Web.Helpers.dll

    Show Details Show Substeps Show Substeps Show Substeps
  • System.Web.Mvc.dll

    Show Details Show Substeps Show Substeps Show Substeps
  • System.Web.Razor.dll

    Show Details Show Substeps Show Substeps Show Substeps
  • System.Web.WebPages.Deployment.dll

    Show Details Show Substeps Show Substeps Show Substeps
  • System.Web.WebPages.dll

    Show Details Show Substeps Show Substeps Show Substeps
  • System.Web.WebPages.Razor.dll

    Show Details Show Substeps Show Substeps Show Substeps
  • That's all!

    Show Details Show Substeps Show Substeps Show Substeps
  • New Step

    Show Details Show Substeps Show Substeps Show Substeps
Use this Checklist

Preview/Print

Use

Change

Sort