I was planning to move my web applications written in MVC3 to MVC4 but was reluctant to do so as my current host (Godaddy) doesn’t support MVC4. After looking here and there finally I managed to run MVC4 on Godaddy servers.
To do this you can follow similar steps for MVC4 too as mentioned by Phil Haack in his blog. In short , the idea is to copy required MVC4 DLLs to the bin folder of the remote server :
- Microsoft.Web.Infrastructure.dll
- System.Web.Helpers.dll
- System.Web.Mvc.dll
- System.Web.Razor.dll
- System.Web.WebPages.Deployment.dll
- System.Web.WebPages.dll
- System.Web.WebPages.Razor.dll
To find correct location of these dll’s, goto project right click –> references –> select the desired dll and make copy local property to true. You need to do this for all of the above dll’s. After you are done with this step compile the application and you are ready to copy the files. You can either do it manually or do it using deployment wizard.