部署asp.net mvc4申请GoDaddy的 [英] Deploying a asp.net mvc4 application to godaddy

查看:256
本文介绍了部署asp.net mvc4申请GoDaddy的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建使用上的Visual Studio 2012 C#但是面对一个很难部署它的ASP.NET应用程序MVC4。我上传我的项目的所有文件夹到我的服务器(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?

推荐答案

您可以bin部署的MVC4应用GoDaddy的。

You can bin deploy an MVC4 app to GoDaddy.

只需复制你需要你的生产bin目录中的相关MVC4相关的DLL。

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

另外,你可以设置为this博客文章。然后,当你做一个发布你的应用程序中,所有需要的组件将被自动包含在内。

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.

您可能不会需要所有这些,但在MVC4应用程序,我目前管理上GoDaddy的,我需要手动包含的正确版本的DLL 为:

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

这篇关于部署asp.net mvc4申请GoDaddy的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆