尝试在Azure中部署Echobot时如何解决“访问被拒绝"错误? [英] How do I resolve Access Denied error when trying to deploy Echobot in Azure?

查看:73
本文介绍了尝试在Azure中部署Echobot时如何解决“访问被拒绝"错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个运行中的机器人,试图将更新推送到该机器人并获得了失败响应.我也尝试过在Kudu进行构建和部署,但也没有运气.就像进行健全性检查一样,我还在Azure上制作了一个全新的echobot,并尝试在Kudu Console中运行构建和部署命令.

I had a operating bot that I tried to push an update to and got a failure response. I tried building and deploying in Kudu with no luck either. Just as a sanity check I also made a brand new echobot on Azure and tried to run the build and deploy commands in Kudu Console.

要提到的意思我也看到过类似问题的其他提及,包括:错误-访问被拒绝-部署到Azure App Services https://github.com/projectkudu/kudu/issues/3177 https://medium.com/rare-crew/hot-issue-on-azure-and-deployment-of-apps-by-kudu-scripts-dotnet-sdk-v3-1-301-92d6e336756a

Meant to mention I've seen a few other mentions of similar issues including: Error - Access is denied - deployment to Azure App Services https://github.com/projectkudu/kudu/issues/3177 https://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.

推荐答案

我们在此线程中获得了答案:

We arrived at an answer in this thread: Microsoft Help Link

对于由Azure生成的默认Echobot项目,您需要在"D:\ home \ site \ wwwroot"目录中创建一个global.json文件.使用以下代码.您可以使用Kudu调试控制台访问该文件夹.

For the default Echobot project generated by Azure you need a global.json file in "D:\home\site\wwwroot" with the following code. You can get to this folder by using the Kudu debug console.

{
 "sdk": {
 "version": "3.1.202"
 }
 }

这篇关于尝试在Azure中部署Echobot时如何解决“访问被拒绝"错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆