【问题标题】:NET 5 MVC 6 - Publishing to Azure Websites ERROR_COULD_NOT_FIND_APPROOT_FOLDERNET 5 MVC 6 - 发布到 Azure 网站 ERROR_COULD_NOT_FIND_APPROOT_FOLDER
【发布时间】:2015-03-09 00:31:11
【问题描述】:

只是尝试将 mvc 6 默认模板 (web api) 项目发布到天蓝色(从发布向导导入发布配置文件,信息正确但在预览或发布时我收到:

ERROR_COULD_NOT_FIND_APPROOT_FOLDER

在谷歌上搜索错误给了我 0 个结果。 微软提供的链接也没有这个错误文档。

不知道去哪里找。我的 project.json 确实有合适的webroot : wwwroot (正如我所说,对网站项目没有修改)

当然,它可以在本地工作。

我收到的完整错误是:

1>------ Build started: Project: MayaKin.Web, Configuration: Release Any CPU ------
Inside GatherAllFilesToPublish
Environment variables:
Path=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\\Extensions\Microsoft\Web Tools\External;%PATH%;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\\Extensions\Microsoft\Web Tools\External\git
C:\Users\Bart\.k\runtimes\kre-clr-win-x86.1.0.0-beta3-11030\bin\kpm.cmd bundle "C:\Bartmax\MayaKin\MayaKin\src\MayaKin.Web" --out "C:\Users\Bart\AppData\Local\Temp\AspNetPublish\MayaKin.Web-42" --configuration Release --runtime kre-coreclr-win-x64.1.0.0-beta3 --wwwroot-out "wwwroot" --quiet
1>
1>  Build succeeded.
1>      0 Warning(s).
1>      0 Error(s).
1>
1>  Time elapsed 00:00:00.0860073
1>
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
Time elapsed 00:00:00.4172004
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.AspNet.Publishing.targets(205,5): Error ERROR_COULD_NOT_FIND_APPROOT_FOLDER: Web deployment task failed. (Could not map the path 'MayaKin__Staging' to an approot folder.  Make sure the relative path you specify points to the root of an application.
  Obtenga más información en: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_COULD_NOT_FIND_APPROOT_FOLDER.)
Publish failed to deploy.

【问题讨论】:

  • 发现 azure 上的名称存在 __staging 部署槽的问题。部署到主插槽有效。

标签: azure asp.net-core-mvc


【解决方案1】:

此问题已修复。可以关注github上的issue。

https://github.com/aspnet/Tooling/issues/15

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-03-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多