Error indexing method #39;Class.Method#39; Cannot bind parameter #39;log#39; to type TraceWriter(错误索引方法“Class.Method无法将参数“log绑定到类型 TraceWriter)
问题描述
我已将一堆 Azure Functions 升级"到 .netstandard 2.0,但出现以下错误:
<块引用>错误索引方法Class.Method"无法将参数log"绑定到键入 TraceWriter.确保参数 Type 受支持捆绑.如果您使用绑定扩展(例如 ServiceBus、Timers、等)确保你已经调用了注册方法启动代码中的扩展名(例如 config.UseServiceBus(),config.UseTimers() 等).
按照
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?
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.
这篇关于错误索引方法“Class.Method"无法将参数“log"绑定到类型 TraceWriter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:错误索引方法“Class.Method"无法将参数“log"绑定到类型 TraceWriter


基础教程推荐
- 如何动态获取文本框中datagridview列的总和 2022-01-01
- 从 VS 2017 .NET Core 项目的发布目录中排除文件 2022-01-01
- 错误“此流不支持搜索操作"在 C# 中 2022-01-01
- 在 VS2010 中的 Post Build 事件中将 bin 文件复制到物 2022-01-01
- 全局 ASAX - 获取服务器名称 2022-01-01
- JSON.NET 中基于属性的类型解析 2022-01-01
- 将事件 TextChanged 分配给表单中的所有文本框 2022-01-01
- 经典 Asp 中的 ResolveUrl/Url.Content 等效项 2022-01-01
- 是否可以在 asp classic 和 asp.net 之间共享会话状态 2022-01-01
- 首先创建代码,多对多,关联表中的附加字段 2022-01-01