我的始终运行的功能最近停止工作。所以我开始查看发生了什么变化,在 VS2017 中本地加载解决方案并点击编译。一切似乎都在编译,但是当我在本地运行它时,我得到:
block 引用>Error indexing method 'CheckNewBlob.Run' Microsoft.Azure.WebJobs.Host: Error indexing method 'CheckNewBlob.Run'. System.Private.CoreLib: Could not load type 'Microsoft.Azure.WebJobs.BlobTriggerAttribute' from assembly 'Microsoft.Azure.WebJobs, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'
好吧,我尝试注册绑定(bind)并尝试安装最新的 Azure.WebJobs.Core(无论它叫什么)包 - 没有运气!它只是不再编译了!我什至尝试重新创建该项目,但这只是浪费时间。不是功能坏了。 甚至还没有到达表存储输出...
那么,Azure 功能团队,我们应该如何处理这一切?
足以说明现有函数不再由新的 blob 触发。昨天还可以用,但现在就不行了。
Azure Functions 核心工具 (2.0.1-beta.36) 函数运行时版本:2.0.12050.0
最佳答案
https://github.com/Azure/app-service-announcements/issues/129包含您需要了解的所有内容(并且之前已将相关电子邮件发送给所有订阅所有者)。另请参阅https://github.com/Azure/azure-functions-host/issues/3363 .
引用您的特定错误:
You'll get this if you're using Azure Storage based functionality (blob/queue/tables trigger/input/output) and you haven't installed the Microsoft.Azure.WebJobs.Extensions.Storage extension.
关于c# - Azure Function 停止工作 - 无法加载类型 'Microsoft.Azure.WebJobs.BlobTriggerAttribute',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52129009/