2010-01-28 60 views
3

我正在運行asp.net mvc,並且自去年4月以來一直在運行。一直以來,我一直使用Visual Studio中的發佈功能發佈我的網站。本週,我添加了一些telerik腳本和jquery 1.4腳本。出於某種原因,當我嘗試發佈時,它在jquery腳本上失敗。所有的telerik腳本加載正常,他們在同一個文件夾中。有任何想法嗎?爲什麼我的asp.net mvc發佈不再工作?

------ 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 ========== 

UPDATE:其實我留在項目中的jQuery文件,但它刪除了所有的內容和它工作得很好。當我添加內容時,發佈不起作用。

回答

0

我一般建議不要使用內置發佈功能上傳到FTP。它偶爾會遇到FTP站點的問題,並且會出現發佈失敗的錯誤,但是,它並非完全失敗。由於一個失敗的文件,您只會收到失敗的消息,但網站的其餘部分仍然可以正常工作。發佈原始未修改的腳本以及設計器創建的文件和圖像時,發生了此錯誤。

我發現使用發佈功能發佈本地副本或創建包(右鍵單擊解決方案中的Web項目)要少得多。一旦所有發佈的文件都在我指定的文件夾中,我使用其他FTP程序上傳。

+0

是的,這就是它看起來像我將不得不做的。它看起來像一切工作,但沒有我改變了上傳由於某種原因。自去年4月以來一直工作正常。 – 2010-01-28 21:01:58

相關問題