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

我的未来我决定 提交于 2019-12-02 06:40:49

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/49672011/error-indexing-method-class-method-cannot-bind-parameter-log-to-type-tracewr

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!