错误索引方法"Class.Method"无法绑定参数"log"以键入TraceWriter [英] Error indexing method 'Class.Method' Cannot bind parameter 'log' to type TraceWriter

查看:69
本文介绍了错误索引方法"Class.Method"无法绑定参数"log"以键入TraceWriter的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经将一堆我的Azure函数升级"到.netstandard 2.0,并且出现以下错误:

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

错误索引方法'Class.Method'无法将参数'log'绑定到 键入TraceWriter.确保参数类型支持 捆绑.如果您使用的是绑定扩展(例如ServiceBus,Timers, 等),确保您已经调用了 您的启动代码中的扩展名(例如config.UseServiceBus(), config.UseTimers()等).

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.).

按照该问题的答案,我确定我具有最新版本的Azure Functions and Web Jobs Tools:它正在运行15.0.40322.0.不过,我有同样的错误.

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.

我知道运行.netstandard 2.0的Azure Functions在beta中.

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

我想念什么?

推荐答案

要使其正常运行,事实证明我必须这样做:

To make it works, turns out I had to:

  • 删除旧的功能应用程序;
  • 创建一个新的
  • 在Function App设置中,将运行时版本设置为beta;
  • 发布Azure功能.

这篇关于错误索引方法"Class.Method"无法绑定参数"log"以键入TraceWriter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆