如何通过FTP MVC3网站部署到服务器 [英] How do i deploy MVC3 website to server via ftp

查看:146
本文介绍了如何通过FTP MVC3网站部署到服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我能够发布网站,本地机文件夹,在那里我已经垃圾桶,内容,脚本,视图,网络,全球性的,包文件夹。
当我这些文件夹添加到使用FileZilla的我的web服务器的根目录,网站无法正常工作。服务器不支持asp.net 4,II7。
究竟是什么步骤。我找了一些答案谷歌上搜索,但没有它的帮助。我真的AP preciate如果你能帮助我想出解决办法,谢谢

i was able to publish the website to local machine folder, where i've the bin, content, scripts, views, web, global, and packages folder. AFter i add these folders to the root of my web server using filezilla, the website does not work. server does support asp.net 4, ii7. What exactly are the steps. i looked for some answers googling, but none of it helped. I'd realy appreciate if you can help me figure this out, thanks

Update问题修正:我的项目是使用.NET 4.5,而不是4.0 ...这是在服务器上导致了问题我在那里部署我的网站

UPDATE Issue Fixed: My project was using .net 4.5 instead of 4.0...which was causing the issue on the server where I was deploying my website

推荐答案

有以2个步骤部署应用程序:

There are 2 steps in order to deploy your application:

1. If ASP.NET MVC 3.0 is not installed on the server you should deploy the following set of assemblies in the bin folder of your web 
application:

Microsoft.Web.Infrastructure.dll
System.Web.Helpers.dll
System.Web.Mvc.dll
System.Web.Razor.dll
System.Web.WebPages.Deployment.dll
System.Web.WebPages.dll
System.Web.WebPages.Razor.dll
 you can set copy local to true but this is not available for all listed dll's or you can use some interesting future: right click on the project and select Add Deployable Dependencies with ASP.NET checkbox checked.A special folder named _bin_deployableAssemblies will be created with all necessary assemblies copied into this folder. When the project will be compiled all this assemblies will be copied into bin folder.

2. Publish the application: in a local folder and copy it to your deployment server or directly via FTP.

这篇关于如何通过FTP MVC3网站部署到服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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