Azure / azure-functions-servicebus-extension

Service Bus extension for Azure Functions
MIT License
65 stars 35 forks source link

Could not load WebJobs.Extensions.Http error when debugging function app #218

Open oliverhitchacs opened 1 year ago

oliverhitchacs commented 1 year ago

Having recently got our Nuget Packages up to date, when I try and launch any of the function apps locally in Visual Studio they are now giving this error:

A host error has occurred during startup operation '94f0d3b5-a52a-4ec2-b37a-8e3afe2c9c65'.
System.Private.CoreLib: Could not load file or assembly 'Microsoft.Azure.WebJobs.Extensions.Http, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.
Value cannot be null. (Parameter 'provider')

I tried upgrading Visual Studio and re-installing the Azure Functions Core Tools, but that made no difference. It started to work again when I downgraded Microsoft.Azure.WebJobs.Extensions.ServiceBus from 5.8.1 to 5.7.0. We are on .NET 6.0