简体   繁体   English

从Visual Studio 2015进行的Web部署失败,没有错误

[英]Web deploy from Visual Studio 2015 fails with no errors

I'm trying to publish a web project to an Azure App Service site. 我正在尝试将Web项目发布到Azure应用服务站点。 The compile runs and then the publish routine immediately fails with no error messages. 编译运行,然后发布例程立即失败,没有错误消息。 The Error List window in Visual Studio 2015 is displayed, but there's nothing there. 将显示Visual Studio 2015中的“错误列表”窗口,但没有任何显示。

The Output window contains the following: “输出”窗口包含以下内容:

========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========

I've tried resetting the publish profile, via the Azure Portal. 我尝试通过Azure门户重置发布配置文件。 That allowed me to publish one time. 那使我可以发表一次。 I tried to publish again and received the same, Publish failed message in the footer bar of Visual Studio: 我试图再次发布并在Visual Studio的页脚栏中收到相同的发布失败消息:

在此处输入图片说明

There are no other indications of an error or any clues as to what the problem might be. 没有其他迹象表明存在错误,也没有任何暗示可能是问题所在。

I have several other web projects in the solution that I'm using and they all seem to be working. 我正在使用的解决方案中还有其他几个Web项目,它们似乎都在工作。 I have no idea what's different about this project that it is so problematic with trying to publishing. 我不知道这个项目有什么不同之处,以至于尝试发布时有很多问题。 It's just a standard ASP.NET MVC project. 这只是一个标准的ASP.NET MVC项目。

Update: I've discovered that if I rebuild the project (not just build) that I can publish successfully every time. 更新:我发现,如果我重新构建项目(而不仅仅是构建),则每次都可以成功发布。 I'm not sure what that does, as I'm usually only pushing *.js files. 我不确定这样做是什么,因为我通常只推送* .js文件。

有时,Azure上的应用程序池上有一些锁可以阻止发布,请尝试回收应用程序服务,下载发布者配置文件然后发布。

I had faced a similar issue and fixed it by installing the latest SDK. 我曾经遇到过类似的问题,并通过安装最新的SDK进行了修复。 Install it from here: https://azure.microsoft.com/en-in/downloads/ , redownload the publishing profile and then re-try the operation. 从此处安装它: https : //azure.microsoft.com/en-in/downloads/ ,重新下载发布配置文件,然后重试该操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 Visual Studio 2015 中部署到 FTP/Web 部署 - Deploying to FTP/Web Deploy In Visual Studio 2015 Visual Studio Web Apps发布失败-没有错误 - Visual Studio Web Apps Publish fails - no errors 在Visual Studio 2015中链接错误 - Linking errors in visual studio 2015 Visual Studio 2015 CSC错误 - Visual Studio 2015 CSC errors 无法在Windows服务器上安装Web部署,安装程序找不到“visual studio 2015 update 2”和“visual studio 2015” - cannot install web deploy on windows server, installer does not find either “visual studio 2015 update 2” and “visual studio 2015” Visual Studio 2015隐藏错误列表中的Javascript错误 - Visual Studio 2015 Hide Javascript Errors from Error List 在Web部署期间,Visual Studio 2015在Azure云上找不到现有的Web应用程序 - Visual Studio 2015 does not find existing Web Apps on Azure Cloud during Web Deploy Visual Studio 2015 Web Express - Visual Studio 2015 Web Express Visual Studio 2015挂在Ripple部署 - Visual studio 2015 hanging on Ripple deploy Visual Studio 2015无法在设备中部署应用程序? - Visual Studio 2015 failed to deploy application in device?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM