我有一个操作机器人,我试图推动更新,并得到了失败的React。我尝试在Kudu建造和部署,但也没有成功。作为一个明智的检查,我还在azure上创建了一个全新的echobot,并尝试在kudu控制台中运行构建和部署命令。
编辑:我也看到过一些类似的问题,包括:错误-访问被拒绝-部署到azure应用服务iceshttps://github.com/projectkudu/kudu/issues/3177httpshttp://medium.com/rare-crew/hot-issue-on-azure-and-deployment-of-apps-by-kudu-scripts-dotnet-sdk-v3-1-301-92d6e336756a
MSBUILD : error MSB1025:Unhandled exception. An internal failure occurred while running MSBuild.
System.ComponentModel.Win32Exception (5): Access is denied.
at System.Diagnostics.Process.set_PriorityClassCore(ProcessPriorityClass value)
at System.Diagnostics.Process.set_PriorityClass(ProcessPriorityClass value)
at Microsoft.Build.CommandLine.MSBuildApp.Execute(String[] commandLine)
System.ComponentModel.Win32Exception (5): Access is denied.
at System.Diagnostics.Process.set_PriorityClassCore(ProcessPriorityClass value)
at System.Diagnostics.Process.set_PriorityClass(ProcessPriorityClass value)
at Microsoft.Build.CommandLine.MSBuildApp.Execute(String[] commandLine)
at Microsoft.Build.CommandLine.MSBuildApp.Main(String[] args)
Failed exitCode=-532462766, command=dotnet restore "EchoBot.sln"
An error has occurred during web site deployment.
2条答案
按热度按时间kognpnkq1#
我们在此线程中找到了答案:microsoft帮助链接
对于由azure生成的默认echobot项目,您需要一个“d:\home\site\wwwroot”中的global.json文件,其中包含以下代码。您可以使用kudu调试控制台访问此文件夹。
vd2z7a6w2#
最新的dotnetsdk(2.1.515和3.1.301)版本最近引入了这个问题。这会影响自定义部署脚本仍使用dotnet restore和publish to build的项目。请尝试deploy.cmd中的以下解决方法来解决此问题。
设置msbuild\u路径=%programfiles(x86)%\msbuild-16.4\msbuild\current\bin\msbuild.exe
调用:executecmd“%msbuild\u path%”-t:还原“%deployment\u source%\my solution.sln”
call:executecmd“%msbuild\u path%”-t:publish“%deployment\u source%\vstar next\my proj.csproj”-p:outputpath=“%deployment\u temp%”-p:configuration=dev