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

1

1

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?

Capernaum answered 5/4, 2018 at 12:8 Comment(0)
C
2

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

Capernaum answered 5/4, 2018 at 13:49 Comment(1)
This helped for me as well, only I had to change it from 1 to 2Aoudad

© 2022 - 2024 — McMap. All rights reserved.