尝试从 Visual Studio 发布天蓝色函数时出错 [英] Error when trying to publish an azure function from Visual Studio

查看:12
本文介绍了尝试从 Visual Studio 发布天蓝色函数时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用 Visual Studio 发布我的函数时收到以下错误消息,知道如何解决这个问题吗?

I get the following error message when I try to publish my function using Visual Studio, any idea how to fix this?

System.AggregateException:发生一个或多个错误.--->System.Exception:发布遇到错误.我们无法确定错误的原因.检查输出日志以获取更多信息细节.--- 内部异常堆栈跟踪结束 --- 在System.Threading.Tasks.Task.ThrowIfExceptional(布尔includeTaskCanceledExceptions) 在System.Threading.Tasks.Task.Wait(Int32 毫秒超时,CancellationToken 取消令牌)在Microsoft.Publish.Framework.Model.DefaultPublishSteps.<>c__DisplayClass26_0.b__2()在 System.Threading.Tasks.Task`1.InnerInvoke() 在System.Threading.Tasks.Task.Execute()--- 从先前抛出异常的位置结束堆栈跟踪 --- 在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)在Microsoft.Publish.Framework.Model.DefaultPublishSteps.d__23.MoveNext()--- 从先前抛出异常的位置结束堆栈跟踪 --- 在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)在Microsoft.Publish.Framework.ViewModel.ProfileSelectorViewModel.d__213.MoveNext()--->(内部异常 #0)System.Exception:发布遇到错误.我们无法确定错误的原因.检查输出日志以获取更多详细信息.<---

System.AggregateException: One or more errors occurred. ---> System.Exception: Publish has encountered an error. We were unable to determine the cause of the error. Check the output log 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.Publish.Framework.Model.DefaultPublishSteps.<>c__DisplayClass26_0.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.Publish.Framework.Model.DefaultPublishSteps.d__23.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.Publish.Framework.ViewModel.ProfileSelectorViewModel.d__213.MoveNext() ---> (Inner Exception #0) System.Exception: Publish has encountered an error. We were unable to determine the cause of the error. Check the output log for more details. <---

System.Exception:发布遇到错误.我们无法确定错误的原因.检查输出日志以获取更多信息细节.

System.Exception: Publish has encountered an error. We were unable to determine the cause of the error. Check the output log for more details.

====================

===================

推荐答案

解决方案是更新到最新的SDK.

The solution was to update to the newest SDK.

这篇关于尝试从 Visual Studio 发布天蓝色函数时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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