Knowledgebase

Deploying MVC 3 Applications

After deploying your application you may receive errors similar to the following:

Could not load file or assembly ‘System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35′ or one of its dependencies. The system cannot find the file specified.

or 

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. 

This is due to the MVC binaries not being installed in the GAC on the server. To get past these errors you must bin deploy the necessary DLLs to the application’s bin directory.  

The following procedure in Visual Studio will allow you to bin deploy

1) Right click on your project and click on Add Deployable Dependencies. 

2) Click the appropriate dependency on the dialog that appears.  After you click OK, you should see a new folder, _bin_deployableAssemblies in your project tree.

3) Deploy your application as you normally would and Visual Studio will now deploy all the listed DLLs onto the server to your /bin directory.

  • ASP.NET, MVC
  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

Enable PHP Errors

To enable PHP Errors on HELM Hosted websites insert the following code at the top of your PHP...

Visual Studio Principal Error

Server Principal is not able to access database errors A couple of customers have had this issue...

HELM Control Panel Logon

The Control Panel Logon for HELM can be found here https://helm.kiwihosting.net.nz