c# - Azure Function 停止工作 - 无法加载类型 'Microsoft.Azure.WebJobs.BlobTriggerAttribute'

标签 c# azure azure-functions azure-blob-storage

我的始终运行的功能最近停止工作。所以我开始查看发生了什么变化,在 VS2017 中本地加载解决方案并点击编译。一切似乎都在编译,但是当我在本地运行它时,我得到:

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/

相关文章:

azure - 有没有办法为 "*.cloudapp.net "azure 网站创建自签名证书

java - 记录 Azure 函数

c# - Invalidate 不会导致 OnDraw

c# - 从 C# 调用外部 C 方法

azure - 恢复 "Access the user'的配置文件“API访问”

azure - 如何对多个 Azure Functions HttpTrigger 进行排队以防止内存错误?

具有动态 SQL 筛选器查询的 Azure 服务总线主题订阅

c# - VB 中的重写事件

c# - 保存和加载词典。改善内存占用

c# - Azure + HDInsight 的本地模拟