Kzryzstof
Kzryzstof

Reputation: 8382

Error indexing method 'Class.Method' Cannot bind parameter 'log' to type TraceWriter

I have "upgraded" a bunch of my Azure Functions to .netstandard 2.0 and I get the following error:

Error indexing method 'Class.Method' Cannot bind parameter 'log' to type TraceWriter. Make sure the parameter Type is supported by the binding. If you're using binding extensions (e.g. ServiceBus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code (e.g. config.UseServiceBus(), config.UseTimers(), etc.).

Following the answer to that question, I made sure I have the latest version of Azure Functions and Web Jobs Tools: it is running 15.0.40322.0. Still, I have the same error.

I know Azure Functions running .netstandard 2.0 is in beta.

What did I miss?

Upvotes: 1

Views: 950

Answers (1)

Kzryzstof
Kzryzstof

Reputation: 8382

To make it works, turns out I had to:

  • Delete the old Function App;
  • Create a new one;
  • In Function App settings, set the runtime version to beta;
  • Publish the Azure Functions.

enter image description here

Upvotes: 2

Related Questions