我有一个在Visual Studio 2017中使用Bot Framework v4的机器人,以及没有资源和资源组的干净Azure订阅 .

我按照this教程将bot部署到Azure .

它第一次工作,但在浏览器中页面显示内部服务器错误消息 .

所以我删除了所有资源及其组,取消了Publish对Visual Studio中任何文件所做的所有更改 . 然后我再次尝试,同样的结果 .

项目在发布模式下构建后,发布失败 . 我检查了Azure,并创建了应用服务和应用服务计划 .

你有什么想法?

输出窗口: Error : Web deployment task failed. (Could not connect to the remote computer ("mybot.scm.azurewebsites.net"). On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Management Service") is started. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE.) The requested resource does not exist, or the requested URL is incorrect. Error details: Could not connect to the remote computer ("mybot.scm.azurewebsites.net"). On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Management Service") is started. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE. The remote server returned an error: (404) Not Found. Publish failed to deploy.

Visual Studio生成了一个带有堆栈跟踪的.tmp文件:

11-Nov-18 13:19:02 System.AggregateException: One or more errors occurred. ---> System.Exception: Build failed. Check the Output window for more details. --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at Microsoft.VisualStudio.Web.Publish.PublishService.VsWebProjectPublish.<>c__DisplayClass43_0.<PublishAsync>b__2() at System.Threading.Tasks.Task``1.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- 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.VisualStudio.ApplicationCapabilities.Publish.ViewModel.ProfileSelectorViewModel.<RunPublishTaskAsync>d__127.MoveNext() ---> (Inner Exception #0) System.Exception: Build failed. Check the Output window for more details.<---