How to run ASP.NET MVC 3 on GoDaddy Shared Hosting

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

  1. Go to IIS management
  2. Set your environment to use IIS 7.0 and ASP.Net Runtime Version 4.0 if it isn’t already set up.
  3. 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.

Advertisements
Published in: on January 11, 2012 at 8:51 pm  Comments (4)  

The URI to TrackBack this entry is: https://blackbeltreview.wordpress.com/2012/01/11/how-to-run-asp-net-mvc-3-on-godaddy-shared-hosting/trackback/

RSS feed for comments on this post.

4 CommentsLeave a comment

  1. I created a web application using Razor (Webmatrix). I tried to publish the site through webmatrix web-deploy/ftp deploy but the default.cshtml file just wont launch.
    I tried the steps suggested with no success. What am I doing wrong?
    Web Host : GoDaddy

  2. I think the admin of this website is really working hard for his website, since here every material is quality based stuff.

  3. I’m excited to uncover this web site. I want to to thank you for your time just for this wonderful read!!
    I definitely appreciated every bit of it and I have you saved to
    fav to see new things on your blog.

  4. […] How to run ASP.NET MVC 3 on GoDaddy Shared Hosting | … – Jan 11, 2012  · 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 … […]


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: