无法为Web应用程序设置部署源

时间:2016-04-19 16:52:36

标签: azure azure-web-sites azure-devops

我在使用Azure Web App为Visual Studio Team Services帐户设置部署源时遇到问题。

我刚刚重组了我的解决方案 - 添加了一个新项目并将我的git repo的根目录更改为旧根文件夹的父文件夹(我曾经将我的解决方案和项目放在同一个文件夹中,这是我的git root,但现在我有。\ solution \&。\ solution \ project1&。\ solution \ project2,。\ solution现在是我的git root。)

通过我的Visual Studio Team Services帐户设置了持续部署,并且工作正常,但在重新组织后,它停止了工作。我尝试删除并重新创建Azure Web站点,并重新创建了VS Team Services项目,但这没有任何区别。

当我尝试在门户中为我的Web应用程序设置部署源时,它失败并出现以下错误:

Failed to set up deployment source for web app my-web-app(Staging), 
using Visual Studio Team Services. Repository 'UpdateSiteSourceControl' 
operation failed with System.InvalidOperationException: Vso GetRepository: 
Cannot find repository 
https://my_account.visualstudio.com/DefaultCollection/_git/my_repo_name
at 
Microsoft.Web.Hosting.SourceControls.VsoProxy.<GetRepository>d__3f.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Web.Hosting.Administration.VsoSiteRepositoryProvider.<UpdateSiteSourceControl>d__6.MoveNext().

1 个答案:

答案 0 :(得分:0)

而不是在新门户中设置部署源。您可以尝试在仪表板上从源代码管理设置部署:

enter image description here

相关问题