<tfoot id='bx97e'></tfoot>
      <bdo id='bx97e'></bdo><ul id='bx97e'></ul>
    <i id='bx97e'><tr id='bx97e'><dt id='bx97e'><q id='bx97e'><span id='bx97e'><b id='bx97e'><form id='bx97e'><ins id='bx97e'></ins><ul id='bx97e'></ul><sub id='bx97e'></sub></form><legend id='bx97e'></legend><bdo id='bx97e'><pre id='bx97e'><center id='bx97e'></center></pre></bdo></b><th id='bx97e'></th></span></q></dt></tr></i><div id='bx97e'><tfoot id='bx97e'></tfoot><dl id='bx97e'><fieldset id='bx97e'></fieldset></dl></div>

    1. <small id='bx97e'></small><noframes id='bx97e'>

      <legend id='bx97e'><style id='bx97e'><dir id='bx97e'><q id='bx97e'></q></dir></style></legend>

      错误索引方法“Class.Method"无法将参数“log"绑定到类型 TraceWriter

      Error indexing method #39;Class.Method#39; Cannot bind parameter #39;log#39; to type TraceWriter(错误索引方法“Class.Method无法将参数“log绑定到类型 TraceWriter)
            <tbody id='xJUM2'></tbody>
        • <small id='xJUM2'></small><noframes id='xJUM2'>

          <tfoot id='xJUM2'></tfoot>
            <bdo id='xJUM2'></bdo><ul id='xJUM2'></ul>

            <legend id='xJUM2'><style id='xJUM2'><dir id='xJUM2'><q id='xJUM2'></q></dir></style></legend>
            1. <i id='xJUM2'><tr id='xJUM2'><dt id='xJUM2'><q id='xJUM2'><span id='xJUM2'><b id='xJUM2'><form id='xJUM2'><ins id='xJUM2'></ins><ul id='xJUM2'></ul><sub id='xJUM2'></sub></form><legend id='xJUM2'></legend><bdo id='xJUM2'><pre id='xJUM2'><center id='xJUM2'></center></pre></bdo></b><th id='xJUM2'></th></span></q></dt></tr></i><div id='xJUM2'><tfoot id='xJUM2'></tfoot><dl id='xJUM2'><fieldset id='xJUM2'></fieldset></dl></div>

              1. 本文介绍了错误索引方法“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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Multicast delegate weird behavior in C#?(C# 中的多播委托奇怪行为?)
                Parameter count mismatch with Invoke?(参数计数与调用不匹配?)
                How to store delegates in a List(如何将代表存储在列表中)
                How delegates work (in the background)?(代表如何工作(在后台)?)
                C# Asynchronous call without EndInvoke?(没有 EndInvoke 的 C# 异步调用?)
                Delegate.CreateDelegate() and generics: Error binding to target method(Delegate.CreateDelegate() 和泛型:错误绑定到目标方法)

                          <tbody id='eBBPh'></tbody>
                        <i id='eBBPh'><tr id='eBBPh'><dt id='eBBPh'><q id='eBBPh'><span id='eBBPh'><b id='eBBPh'><form id='eBBPh'><ins id='eBBPh'></ins><ul id='eBBPh'></ul><sub id='eBBPh'></sub></form><legend id='eBBPh'></legend><bdo id='eBBPh'><pre id='eBBPh'><center id='eBBPh'></center></pre></bdo></b><th id='eBBPh'></th></span></q></dt></tr></i><div id='eBBPh'><tfoot id='eBBPh'></tfoot><dl id='eBBPh'><fieldset id='eBBPh'></fieldset></dl></div>

                        <small id='eBBPh'></small><noframes id='eBBPh'>

                          <bdo id='eBBPh'></bdo><ul id='eBBPh'></ul>
                        • <legend id='eBBPh'><style id='eBBPh'><dir id='eBBPh'><q id='eBBPh'></q></dir></style></legend><tfoot id='eBBPh'></tfoot>