为什么我的 ASP.NET MVC 发布不再工作?

发布于 2024-08-19 11:55:35 字数 1755 浏览 3 评论 0原文

我自去年四月以来一直在运行 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 文件留在了项目中,但删除了其中的所有内容,并且工作正常。当我添加内容时,发布不起作用。

I'm running asp.net mvc and have been since last April. All along I have been publishing my site using the Publish feature in Visual Studio. This week, I added some telerik scripts and the jquery 1.4 script. For some reason, when I try to publish, it's failing on the jquery script. All the telerik scripts loaded fine and they are in the same folder. Any ideas?

------ 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: I actually left the jquery file in the project but deleted all the content in it and it worked fine. When I added the content back then the publish didn't work.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

萤火眠眠 2024-08-26 11:55:35

我一般建议不要使用内置的发布功能上传到FTP。有时,FTP 站点会出现问题并给出发布失败的错误,但这并不是完全失败。您只会因为一个失败的文件而收到失败消息,但站点的其余部分仍然可以工作。在发布原始未修改的脚本以及设计师创建的文件和图像时,我发生了这个错误。

我发现使用发布功能发布本地副本或创建包(右键单击解决方案中的 Web 项目)不会那么令人沮丧。一旦所有发布的文件都位于我指定的文件夹中,我就会使用其他一些 FTP 程序来上传。

I generally recommend not using the built in publish function to upload to FTP. It occasionally has trouble with FTP sites and gives the publish failed error, however, its not a complete failure. You only get the failed message because of the one failed file, but the rest of the site would still work. This error has happened to me when publishing the original unmodified scripts as well as designer created files and images.

I find it much less frustrating to use the publish feature to publish a local copy or create a package (right click the web project in your solution). Once all the published files are in my specified folder, I use some other FTP program to upload.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文