首页 文章

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

提问于
浏览
0

我在为我的Visual Studio Team Services帐户在Azure Web App上设置部署源时遇到问题 .

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

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

    enter image description here

相关问题