Skip to content

System.MissingMethodException in AzureBlobStorageProvider.RenameFile #7

Description

Calling the method AzureBlobFileSystem.AzureBlobStorageProvider.RenameFile results in System.MissingMethodException. Using AzureBlobFileSystem, Version=0.0.7.0.

Using WindowsAzure.Storage Version=7.0.0 (see: https://www.nuget.org/packages/WindowsAzure.Storage), the method CloudBlockBlob.StartCopyFromBlob(Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob, Microsoft.WindowsAzure.Storage.AccessCondition, Microsoft.WindowsAzure.Storage.AccessCondition, Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions, Microsoft.WindowsAzure.Storage.OperationContext) is Obsolete, see: https://msdn.microsoft.com/en-us/library/azure/microsoft.windowsazure.storage.blob.cloudblockblob.startcopyfromblob.aspx

An alternative pattern for performing Blob Rename (unoptimized):

  1. Get old blob as a stream
  2. Create new blob using stream from Added snk to project to allow for use in signed solutions #1
  3. Delete old blob

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions