Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Microsoft.Azure.WebJobs.Extensions.Http: Could not load file or assembly

Tags:

azure

I'm working in a virtual environment in VS Code and I can't understand why I'm getting this error:

[2022-07-19T10:00:31.580Z] A host error has occurred during startup operation '609dfded-e9f5-4fc4-b3a3-554bde11a415'.
[2022-07-19T10:00:31.582Z] 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')

What should I check?

like image 962
geojoe Avatar asked Sep 02 '25 05:09

geojoe


2 Answers

Rolled back nuget package Microsoft.NET.Sdk.Functions from 4.1.3 to 4.1.1 on the Azure functions Api project.

Rebuild solution.

like image 125
ZackKnight Avatar answered Sep 05 '25 00:09

ZackKnight


This fixed it for me, hope it helps someone else

  • Close Visual Studio
  • Delete folder C:\Users***\AppData\Local\AzureFunctionsTools
  • Restart Visual Studio.
  • Launch Application, folder gets recreated.

Taken from Unable to upgrade Azure Functions Core Tools, Exception "Cannot create instance of type 'NuGet.Versioning.VersionRange'"

like image 20
Kevin Able Avatar answered Sep 05 '25 00:09

Kevin Able



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!