I am working with Azure Functions app in intellij idea. From Yesterday I am struggling with following issue :
[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').
I have done these steps :
- Checked Java version everywhere in project it's correct.
- Removed all Azure Functions Core Tool and upgraded to latest version - not worked.
- Removed this folder C:\Users\me.azure-functions-core-tools - not worked.
- Removed all version of intellij 2021 and installed latest 2023.2.2 version - not worked.
- Run mvn clean package or mvn clean insall - not worked.
- Removed .intellij folder then reloaded - not worked.
- Install VS Code and run the project - not working
- Tried with CLI - not working
Same issue I am getting everywhere.
Please let me know if any other settings to do for me to work with Azure Functions in intellij.
This happens mostly due to issues with Azure functions core tools.
JavaandMavenas well.binfolder of your project, then clean and rebuild the application.pom.xml:Pom.xml of my sample Http Azure function:
local.settings.json:
References:
https://github.com/Azure/azure-functions-core-tools/issues/3115