gpt4 book ai didi

Azure Functions ScriptHost 初始化失败错误

转载 作者:行者123 更新时间:2023-12-02 20:04:11 25 4
gpt4 key购买 nike

我正在尝试编写一个简单的 Azure Function 应用程序,并且想在 VS 2017 解决方案中引用一些其他现有项目。这些其他项目引用了一些自定义日志记录代码,这些代码又引用了 Nuget 包 Microsoft.Extensions.Logging、Microsoft.Extensions.Logging.Console 和 Microsoft.Extensions.Logging.Debug。

当我在 VS2017 中启动函数应用程序时,出现以下错误:

[3/21/2018 5:42:12 PM] ScriptHost initialization failed
[3/21/2018 5:42:12 PM] System.Private.CoreLib: Could not load file or assembly 'Microsoft.Extensions.Logging.Abstractions, Version=2.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. Could not find or load a specific file. (Exception from HRESULT: 0x80131621). System.Private.CoreLib: Could not load file or assembly 'Microsoft.Extensions.Logging.Abstractions, Version=2.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.

我是否在 Functions 项目中直接引用上述三个 Nuget 包并不重要。我使用的是 1.0.9 版本的 Azure Functions。

我在此处的 GitHub 存储库中发布了一个高度简化的项目示例,显示了此错误:https://github.com/chriswill/FunctionDemo

最佳答案

感谢您的报告。问题正在跟踪 here

关于Azure Functions ScriptHost 初始化失败错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49413476/

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