Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method not found: 'Void Microsoft.Azure.Storage.Blob.BlobRequestOptions.set_EncryptionScope(System.String) #283

Open
walonso opened this issue Sep 9, 2021 · 0 comments

Comments

@walonso
Copy link

walonso commented Sep 9, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant