Solved: Azure Function Could not load file or assembly System.Diagnostics.Tracing, Version=5.0.0.0 after migrating to .NET 6
Encountered with a probelm after migrating to .NET, one of my azure functions is failing with the following message:
Microsoft.Extensions.Azure: Could not load file or assembly 'System.Diagnostics.Tracing, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
I found that the problem somehow related to Microsoft.Azure.WebJobs.Extensions.Storage.Queues
package, however there is no option to upgrade it to recent one. the 6 month old version I'm using is the up-to-date.
The solution lays basically in the definition of .NET 6 support for Azure Function
availability notice. .NET 6 is available for Azure Function
4.0, and since the problem is in extension library function extension version should be set accordingly.
To fix the problem go to Configuration
section of your function, and change FUNCTIONS_EXTENSION_VERSION "~3" to "~4"
Cheers
🚀 Turbocharge Your Infrastructure with Our Terraform Template Kits! 🚀
🌟 Slash deployment time and costs! Discover the ultimate solution for efficient, cost-effective cloud infrastructure. Perfect for DevOps enthusiasts looking for a reliable, scalable setup. Click here to revolutionize your workflow!
Learn More about Starter Terraform Kits for AKS,EKS and GKE
No comments are allowed for this post