尝试从Visual Studio发布Azure函数时出错

尝试从Visual Studio发布Azure函数时出错

问题描述:

当我尝试使用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(Boolean includeTaskCanceledExceptions) System.Threading.Tasks.Task.Wait(Int32毫秒超时, 的CancellationToken cancelToken) 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.