title: Azure Blob Storage "Method not found" with C#
body: <p>I have the folowing error when I apply the method <code>GetBlockBlobReference()</code> on a azure storage container. I can fetch this container using the <code>Microsoft.WindowsAzure.Storage</code> NuGet, I can also see al the methods when I navigate into this Nuget, but at the compilation some methods are not found.</p>
  
  <blockquote>
    <p>System.Private.CoreLib: Exception while executing function:
    AffluenceFunction. GoogleAnalytics: Method not found: 'Void
    Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob.UploadFromStream(System.IO.Stream,
    Microsoft.WindowsAzure.Storage.AccessCondition,
    Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions,
    Microsoft.WindowsAzure.Storage.OperationContext)'</p>
  </blockquote>
  
  <p>On the internet everybody says "downgrade" the Azure Storage Nuget version but is not working. I have try with version 5, 6, 7 and even 9. <strong>Im using .NET Framework 4.7 as a class library who is called by a Function Project on version 2.</strong></p>
  
  <p>Some code (again the I can retreive the container):</p>
  
  <pre><code>    public void UploadFile( CloudBlobContainer container )
      {
          var filePathOnServer = Path.Combine("C:/temp/test/c.csv");
  
          using (var fileStream = File.OpenRead(filePathOnServer))
          {
              var filename = "c.csv"; // Trim fully pathed filename to just the filename
              var blockBlob = container.GetBlockBlobReference(filename);
  
              blockBlob.UploadFromStream(fileStream);
          }
      }
  </code></pre>
  
  <p>We use Azure Blob Storage excly the same way on other project (others version of .NET) and it work fine!</p>
  
  <p>Thank you</p>