原來的問題是,我的FTP連接被莫名其妙地遭到停在服務器端。我收到的錯誤消息沒有正確反映這一點。不知道這是Visual Studio的FTP功能還是Arvixe服務器的問題。
無論如何,「暴力強制」FTP發佈(在發生第一次錯誤後立即取消,然後重新開始發佈)運行良好。使用FTP從Visual Studio
當發佈到我的ASP.NET服務器(通過Arvixe主辦),幾乎所有的文件上傳的失敗了。
這裏是我得到在Visual Studio Output窗口中的錯誤的一些樣品:
>Unable to add 'Content/bootstrap/wells.less' to the Web site. Can't open data connection for transfer of "/mysite.com/wwwroot/Content/bootstrap" (425).
>Unable to add folder 'Content/bootstrap/mixins' to the Web site. Cannot create folder "Content/bootstrap/mixins".
>Unable to add 'images/gallery/lawns-(39).jpg' to the Web site. CWD failed. "/mysite.com/wwwroot/images/gallery": directory not found (550).
>Unable to add 'images/gallery/lawns-(45).jpg' to the Web site. Filename invalid (550).
這裏是我的FTP設置。我的憑據是正確的,因爲我連接得很好。還有很多其他文件也可以很好地傳輸。我甚至在發佈後在網站上獲得部分功能,只有受失敗傳輸影響的頁面無法工作。
所以基本上你FTP傳送到本地目錄,然後使用其他應用程序(如FileZilla中)到FTP的網站?爲什麼這是必要的? –
如果你遵循上面的指導方針,它應該是沒有問題的。這是我的經驗。 :)這是你的選擇嘗試與否。 :) – 2016-08-08 07:43:58
如果我再次遇到這些問題,我會在未來投入一次。我在想象FileZilla可能比Visual Studio的內置FTP更好地保持連接,所以你可能會有一點 –