Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Function stopped working - Could not load type 'Microsoft.Azure.WebJobs.BlobTriggerAttribute'

My always running function stopped working recently. So I started to look what's changed, loaded solution locally in VS2017 and hit compile. Everything seems to be compiling but when I run it locally I get:

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'

ok, I tried to register the binding and tried to install latest Azure.WebJobs.Core (whatever it's called) package - no luck! It just does NOT compile anymore! I even tried to recreate the project and that was waste of time. Not the function is broken. And haven't even gotten to Table storage output...

So, Azure functions team, what should we do with all that?

Suffice to say the existing function is not triggered anymore by new blobs. It used to work just yesterday, but that's it, not anymore.

Azure Functions Core Tools (2.0.1-beta.36) Function Runtime Version: 2.0.12050.0

like image 570
alvipeo Avatar asked Jan 01 '23 22:01

alvipeo


1 Answers

https://github.com/Azure/app-service-announcements/issues/129 has everything you need to know (and email was sent earlier about it to all subscription owners). See also https://github.com/Azure/azure-functions-host/issues/3363.

Quoting for your particular error:

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.

like image 62
David Ebbo Avatar answered Jan 20 '23 10:01

David Ebbo