Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying a asp.net mvc4 application to godaddy

I created an ASP.NET MVC4 application using C# on Visual Studio 2012. But facing a hard time deploying it. I uploaded all the folders of my project onto my server (godaddy). But still cant view my website running.

My question: Is this enough to deploy my site ? Or anything else needed?

like image 461
ThisIsJ Avatar asked Jan 12 '13 11:01

ThisIsJ


1 Answers

You can bin deploy an MVC4 app to GoDaddy.

Just copy the relevant MVC4 related DLLs that you need to your production bin directory.

Alternatively, you can set "Copy Local" equal to "true" in the Properties window for any of your MVC4 related project references as described in this blog post. Then when you do a Publish of your application, all of the needed assemblies will be included automatically.

You probably won't need all of these, but in an MVC4 app I currently manage on GoDaddy, I needed to manually include the correct versions of DLLs for:

  • System.Web.Abstractions.dll
  • System.Web.Helpers.dll
  • System.Web.Mvc.dll
  • System.Web.Optimization.dll
  • System.Web.Razor.dll
  • System.Web.Routing.dll
  • System.Web.WebPages.Deployment.dll
  • System.Web.WebPages.dll
  • System.Web.WebPages.Razor.dll
like image 196
Mac Avatar answered Sep 22 '22 14:09

Mac