[英]AWS S3 : TransferUtility dose not contain the definition for UploadAsync in asp.net
While using following code getting the error 使用以下代码获取错误
TransferUtility does not contain the definition for UploadAsync
TransferUtility不包含UploadAsync的定义
TransferUtility fileTransferUtility = new TransferUtility(s3Client);
TransferUtilityUploadRequest uploadRequest = new TransferUtilityUploadRequest
{
BucketName = "bucketname",
FilePath = "foldername",
Key = "filename",
InputStream = "file input Stream"
};
uploadRequest.UploadProgressEvent +=
new EventHandler<UploadProgressArgs>(uploadRequest_UploadPartProgressEvent);
await fileTransferUtility.UploadAsync(uploadRequest);
Finally I got the solution, I was using AWSSDK.S3 of version 3.3.102.9 and .Net of version 4.0 最后我得到了解决方案,我使用的是版本3.3.102.9的AWSSDK.S3和版本4.0的.Net
To use UploadAsync()
It's required AWSSDK.S3 of 3.3.102.11 version and it's requires .Net version 4.5 or above. 要使用
UploadAsync()
它需要3.3.102.11版本的AWSSDK.S3,它需要.Net 4.5或更高版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.