【问题标题】:Azure Functions ScriptHost initialization failed errorAzure Functions ScriptHost 初始化失败错误
【发布时间】:2018-03-22 06:02:04
【问题描述】:

我正在尝试编写一个简单的 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

【问题讨论】:

    标签: azure azure-functions


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2022-10-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-05-30
      • 2015-04-19
      • 2016-06-09
      相关资源
      最近更新 更多