title: Azure Storage blobs Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=4.0.4.0, Culture=neutral, PublicKeyToken=cc7b13ffcd
body: <p>I have a console app program on <code>.Net core 2.2</code> to upload a file to the Azure blob storage. It's completely ok and working on my local computer, But when I deploy the app to the Azure app service, it throws an exception with this error:</p>
  <p><code>Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=4.0.4.0, Culture=neutral, PublicKeyToken=cc7b13ffcd</code>
  the problem is on this line of code:</p>
  <p><code> BlobServiceClient storageAccount = new BlobServiceClient(&quot;connection string&quot;)</code></p>
  <p>I tried to change the versions of <code>System.Diagnostics.DiagnosticSource</code> and <code>Azure.Storage.Blobs</code> but it didn't work on the Azure app  service</p>
  <p>Edit:
  I didn't find any solution for the problem, I change the code so that use Azure storage from the aps.net core app.</p>