0

我能够将网站发布到本地计算机文件夹,其中有 bin、内容、脚本、视图、web、全局​​和包文件夹。在我使用 filezilla 将这些文件夹添加到我的 Web 服务器的根目录后,该网站无法正常工作。服务器确实支持asp.net 4、ii7。具体是什么步骤。我在谷歌上搜索了一些答案,但都没有帮助。如果您能帮我解决这个问题,我将不胜感激,谢谢

更新问题已修复:我的项目使用 .net 4.5 而不是 4.0 ......这导致我部署网站的服务器出现问题

4

2 回答 2

2

部署应用程序有两个步骤:

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.
于 2013-02-04T08:28:37.293 回答
0

在属性窗口中将引用标记为复制到 Bin 目录将确保将 DLL 复制到 /bin 目录。

于 2013-02-05T03:29:29.557 回答