This article shows you how to get your ASP.NET MVC 3 Razor application up and running on the GoDaddy Windows shared hosting.
If you follow the steps in this article, you will be able to get your ASP.NET MVC3 Razor app deployed and running in no time!
Requirements:
- Familiarity with the GoDaddy Shared Hosting Dashboard
Configure your hosting Environment
- Go to IIS management
- Set your environment to use IIS 7.0 and ASP.Net Runtime Version 4.0 if it isn’t already set up.
- Go to the Advanced options and make sure you’re using Integrated Pipeline Mode.
This completes your hosting configuration.
Required Assembly Dependencies
Make sure all the required assembly dependencies are deployed with your web application. Using FTP to publish is the easiest.
The problem with shared hosting is that the MVC assemblies are installed in the GAC by default and not deployed to your website (and will most likely not be installed on the shared hosting site).
To resolve this, in your project references section, set Copy Local to true for the following assemblies:
- Microsoft.Web.Infrastructure
- System.Web.Razor
- System.Web.Abstractions
- System.Web.Helpers
- System.Web.Mvc
- System.Web.Routing
- System.Web.WebPages
- System.Web.WebPages.Deployment
- System.Web.WebPages.Razor
These can be found here:
C:\Program Files (x86)\Microsoft ASP.NET\ ASP.NET Web Pages\v1.0\Assemblies
-or-
C:\Program Files\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\ Assemblies
That’s all you need to do!
Note: These steps should also work with other shared hosting providers as well.
