Alex's Coding Blog
  • home
  • about
  • projects
  • contact

Blog

Solved: Azure Function Could not load file or assembly System.Diagnostics.Tracing, Version=5.0.0.0 after migrating to .NET 6

  • April 26, 2022
  • by Alexander

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"

image

Cheers

.NET Core Azure Functions

🚀 Turbocharge Your Kubernetes Cluster with my Terraform Kits! 🚀

🌟 Slash deployment time and costs! Discover the ultimate solution for efficient, cost-effective Kubernetes Terraform Kits. Perfect for DevOps enthusiasts looking for a reliable, scalable setup.

Learn More about Terraform Kits for AKS,EKS and GKE

Alexander Lvovich

Solution Architect & Software Developer | Automating & Scaling Infrastructure

💡 Working with Kubernetes, Istio, and DevOps. Got questions? Feel free to reach out!

Share on:

No comments are allowed for this post

Recent Posts

  • Securing Web Services Against Unwanted Traffic with NGINX
  • Optimizing API by Offloading Responsibilities to an API Gateway
  • How to Clean Up Local Branches of Remote Merged Branches
  • Resolving Namespace Overriding in Argo CD with Kustomize
  • Connecting to Gitlab's private Nuget registry
  • Why Istio?

Categories

  • Azure
  • Architecture
  • .NET Core
  • Certification
  • DevOps
  • How-to
  • Azure Functions
  • Serverless
  • Cosmos DB
  • Security
  • Thoughts
  • Kubernetes
  • Istio
© Copyright 2025, Alexander Lvovich. Theme by Colorlib
I use cookies and similar technologies on our website to enhance your browsing experience and analyze website traffic. By clicking "Accept," you consent with my Privacy Policy to the use of these technologies.
Accept