Reputation: 3227
V2 App that used to work. When I try to run it now I get the following error:
Microsoft.Azure.WebJobs.Host: Error indexing method 'MyClass.Run'. System.Private.CoreLib: Could not load type 'Microsoft.Azure.WebJobs.QueueTriggerAttribute' from assembly 'Microsoft.Azure.WebJobs, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'.
May also show for Microsoft.Azure.WebJobs.BlobTriggerAttribute
, Microsoft.Azure.WebJobs.BlobAttribute
, Microsoft.Azure.WebJobs.TableAttribute
, or Microsoft.Azure.WebJobs.QueueAttribute
Upvotes: 11
Views: 8388
Reputation: 8911
FWIW: Switching Platform
from 32 Bit
to 64 Bit
fixed this issue for me.
Upvotes: 0
Reputation: 3227
There was a recent release of Azure Functions v2 preview detailed here which requires triggers and bindings that depend on storage to pull in an additional Azure Storage extension. The templates should reflect this change automatically.
To pull in yourself, get the Microsoft.Azure.WebJobs.Extensions.Storage
Nuget Package.
For non-C# apps, running func extensions install
should pull in the right storage extension.
Upvotes: 24