有没有什么方法可以让我在 Godaddy.com 共享主机上运行一个 ASP.NET MVC 项目?

有没有什么方法可以让我在 Godaddy.com 共享主机上运行一个 ASP.NET MVC 项目?

26971 次浏览

As a developer who has deployed an MVC project on GoDaddy's ASP.NET shared hosting, I can tell you with certainty that you can do this, and it's quite easy.

  1. First, make sure that you've gotten a GoDaddy windows hosting plan (they sell both Linux and Windows plans).
  2. Next, make sure that you've set the hosting account to use ASP 2.0/3.0/3.5 (this is enabled by default AFAIK -- but you need to make sure it's set to this if you've changed it in the past). You set this by clicking 'Manage Account' / Content / IIS Settings.
  3. Next, make sure your MVC project is set to copy the MVC .dll's to your bin directory. ASP.NET MVC (as of the beta) now puts these assemblies in the GAC by default. You'll need to change this for your project. Information on how to do this is on Phil Haack's website, here.
  4. Last, just publish your site and upload.

It really should be that easy. Please leave a comment if you have any issues.