SingleTransferContext context = new SingleTransferContext();
context.ProgressHandler = new Progress((progress) =>
{
Console.WriteLine("Bytes uploaded: {0}", progress.BytesTransferred);
});
// Upload a local blob
var task = TransferManager.UploadAsync(
myBlob, blob, null, context, CancellationToken.None);
task.Wait();
What problem was encountered?
As soon as the method "var task = TransferManager.UploadAsync(myBlob, blob, null, context, CancellationToken.None);" is reached, it throws this error: Method not found: 'Void Microsoft.Azure.Storage.Blob.BlobRequestOptions.set_EncryptionScope(System.String)'.
[Error] at Microsoft.Azure.Storage.DataMovement.TransferManager.UploadAsync(Stream sourceStream, CloudBlob destBlob, UploadOptions options, SingleTransferContext context, CancellationToken cancellationToken)at Submission#0.d__1.MoveNext()
Have you found a mitigation/solution?
Used this combination of libraries:
Microsoft.Azure.Storage.DataMovement.dll -> version 1.2.0
Microsoft.Azure.Storage.Common.dll -> version 11.1.7.0
Microsoft.Azure.Storage.Blob.dll -> version 11.1.7.0
Microsoft.Azure.Storage.File.dll -> version 11.1.7.0
Which service(blob, file) does this issue concern?
blob
Which version of the SDK was used?
2.0.4
On which platform were you using? (.Net Framework version or .Net Core version, and OS version)
.Net Core
How can the problem be reproduced? It'd be better if the code caused the problem can be shared.
Stream myBlob=xxx; CloudStorageAccount account = CloudStorageAccount.Parse(destinationConnectionString); CloudBlobClient blobClient = account.CreateCloudBlobClient(); CloudBlobContainer container = blobClient.GetContainerReference(destinationContainer); CloudBlockBlob blob = container.GetBlockBlobReference(name);
SingleTransferContext context = new SingleTransferContext(); context.ProgressHandler = new Progress((progress) =>
{
Console.WriteLine("Bytes uploaded: {0}", progress.BytesTransferred);
});
// Upload a local blob
var task = TransferManager.UploadAsync(
myBlob, blob, null, context, CancellationToken.None);
task.Wait();
What problem was encountered?
As soon as the method "var task = TransferManager.UploadAsync(myBlob, blob, null, context, CancellationToken.None);" is reached, it throws this error: Method not found: 'Void Microsoft.Azure.Storage.Blob.BlobRequestOptions.set_EncryptionScope(System.String)'. [Error] at Microsoft.Azure.Storage.DataMovement.TransferManager.UploadAsync(Stream sourceStream, CloudBlob destBlob, UploadOptions options, SingleTransferContext context, CancellationToken cancellationToken)at Submission#0.d__1.MoveNext()
Have you found a mitigation/solution?
Used this combination of libraries: Microsoft.Azure.Storage.DataMovement.dll -> version 1.2.0 Microsoft.Azure.Storage.Common.dll -> version 11.1.7.0 Microsoft.Azure.Storage.Blob.dll -> version 11.1.7.0 Microsoft.Azure.Storage.File.dll -> version 11.1.7.0