. .

Running ASP.NET MVC 3 appliction on non MVC reday IIS.

Running ASP.NET MVC 3 appliction on non MVC reday IIS.

When you running your MVC app and you got

Parser Error Message: Could not load file or assembly 'System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Most probably, your IIS server do not have MVC installed. Since MVC is built on top of .NET, so you may install MVC RTM on your server or deploy the necessary assemblies with your application.

Reference: Running ASP.NET MVC 3 RC2 on GoDaddy Shared Hosting

Basically, in your project references section, set copy local to true for the following assemblies:

  • System.Web.Abstractions
  • System.Web.Helpers
  • System.Web.Routing
  • System.Web.Mvc
  • System.Web.WebPages

And, dd the following assembly references to your project, and set copy local to true as well:

  • Microsoft.Web.Infrastructure
  • System.Web.Razor
  • System.Web.WebPages.Deployment
  • System.Web.WebPages.Razor