gpt4 book ai didi

c# - 无法将参数 'log' 绑定(bind)到类型 TraceWriter

转载 作者:太空狗 更新时间:2023-10-29 20:53:54 24 4
gpt4 key购买 nike

右键单击项目 -> 调试 -> 启动新实例时收到以下消息。

[1/7/2018 6:48:54 AM] A ScriptHost error has occurred[1/7/2018 6:48:54 AM] Executed HTTP request: { [1/7/2018 6:48:54 AM] Microsoft.Azure.WebJobs.Host: Error indexing method 'TestFilesIngestJobs.RunScheduleAsync'. Microsoft.Azure.WebJobs.Host: 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.). [1/7/2018 6:48:54 AM] "requestId": "dbb282d7-44e2-44b4-907e-877beac9da2d", [1/7/2018 6:48:54 AM] Error indexing method 'MasterDataFilesIngestJobs.RunScheduleAsync' [1/7/2018 6:48:54 AM] "method": "GET",

最佳答案

要使其在您的计算机上运行,​​您必须做两件事。按照此 link 中的 Visual Studio 部分进行操作

  1. 安装 Azure-functions-core-tools@core 包是使用安装的npm。
  2. 创建调试配置文件并进行如下所示的设置并使用它 从 Visual Studio 启动时配置文件。

请查看下面的图片以获取帮助。

Screenshot

关于c# - 无法将参数 'log' 绑定(bind)到类型 TraceWriter,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48135580/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com