我正在运行asp.net mvc并且自去年四月以来一直在运行。我一直在使用Visual Studio中的“发布”功能发布我的网站。本周,我添加了一些telerik脚本和jquery 1.4脚本。出于某种原因,当我尝试发布时,它在jquery脚本上失败了。所有telerik脚本都加载正常,它们位于同一个文件夹中。有任何想法吗?
------ Publish started: Project: Txxx.Sxxx.Web, Configuration: Development Any CPU ------
Connecting to http://exx-txxx.txxxxx.com/sxxxdev/...
Publishing folder /...
Publishing folder App_Data...
Publishing folder App_Data/Uploads...
Publishing folder Content...
Publishing folder Content/2009.3.1320...
Publishing folder Content/Images...
Publishing folder Content/Stylesheets...
Publishing folder DataAccess...
Publishing folder Helpers...
Publishing folder Logs...
Publishing folder Scripts...
Unable to add 'Scripts/jquery-1.4.min.js' to the Web site. Could not find a Web server at 'exx-txxx.txxxxx.com' on port 80. Please check to make sure that the Web server name is valid and your proxy settings are set correctly. If you are sure that everything is correct, the Web server may be temporarily out of service.
Publishing folder Services...
Publishing folder Views...
Publishing folder Views/Account...
Publishing folder Views/Activity...
Publishing folder Views/AdHocCallReport...
Publishing folder Views/Doa...
Publishing folder Views/Fsr...
Publishing folder Views/Home...
Publishing folder Views/Report...
Publishing folder Views/ReqShipment...
Publishing folder Views/ServiceCall...
Publishing folder Views/Shared...
Publishing folder Views/Task...
Publishing folder bin...
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========
更新:我实际上在项目中保留了jquery文件但删除了其中的所有内容并且工作正常。当我添加内容时,发布不起作用。
答案 0 :(得分:0)
我一般建议不要使用内置的发布功能上传到FTP。它偶尔会遇到FTP站点的问题,并且会给出发布失败错误,但是,它不是完全失败的。您只收到失败的消息,因为一个文件失败,但该网站的其余部分仍然有效。发布原始未修改脚本以及设计器创建的文件和图像时,我发生了此错误。
我发现使用发布功能发布本地副本或创建包(右键单击解决方案中的Web项目)并不那么令人沮丧。一旦所有发布的文件都在我指定的文件夹中,我就会使用其他一些FTP程序上传。