我正在使用Azure Functions应用程序intellij idea。从昨天开始,我一直在努力解决以下问题:
[2023-10-05T12:18:02.170Z] A host error has occurred during startup operation '7ab97efe-26f0-49bd-a6c9-53decba6c71b'.
[2023-10-05T12:18:02.170Z] Microsoft.Azure.WebJobs.Extensions.Http: Could not load file or assembly 'System.Net.Http.Formatting, Version=5.2.8.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.
Value cannot be null. (Parameter 'provider')
[2023-10-05T12:18:02.197Z] Host startup operation has been canceled
Failed to run function CLI command from staging folder(azure-functions3169719571234745861). Value cannot be null. (Parameter 'provider').
我做了这些步骤:
- Java版本在项目中的任何地方都是正确的。
- 删除了所有Azure Functions Core Tool并升级到最新版本-不工作。
- 删除此文件夹C:\Users\me.azure-functions-core-tools - not worked.
- 删除所有版本的intellij 2021并安装最新的2023.2.2版本-不工作。
- 运行mvn clean package或mvn clean insall -不起作用。
- 删除.intellij文件夹,然后重新加载-不工作。
- 安装VS Code并运行项目-不工作
- 已尝试使用CLI -不起作用
同样的问题,我到处都有。
请让我知道是否有任何其他设置可以让我在intellij中使用Azure Functions。
1条答案
按热度按时间nhaq1z211#
Java
和Maven
。bin
文件夹,然后清理并重建应用程序。pom.xml
中具有所有兼容版本所需的依赖项:我的示例Http Azure函数的Pom.xml:
local.settings.json:
参考文献:
https://github.com/Azure/azure-functions-core-tools/issues/3115