c# 4.0 - I get an Amazon.S3.AmazonS3Exception: A provisioning code must be provided Exception When I try to create a new Bucket, AWSSDK 3.1.6 C# AmazonS3 -


i trying connect amazon s3 + cleversafe c# , using awssdk 3.1.0.0. want create new bucket. have provisioning code = "my provisioning code" , host="my host", accesskey="my access key", secretkey="my secret key" tried following code :

servicepointmanager.servercertificatevalidationcallback += (sender, cert, chain, error) => { return true; }; basicawscredentials basiccredentials = new basicawscredentials("my access key", "mysecretkey"); amazons3config configurationclient = new amazons3config(); configurationclient.forcepathstyle = true; configurationclient.serviceurl = "https://###.##.###.###";// host ipadress configurationclient.usehttp = false;  try {     using (amazons3client clientconnection = new amazons3client(basiccredentials, configurationclient))     {         putbucketrequest newbucket = new putbucketrequest();         newbucket.useclientregion = true;         newbucket.bucketname = "newbucketcleversafe";         putbucketresponse response = clientconnection.putbucket(newbucket);     } } catch (amazons3exception exception) {   } 

but "amazon.s3.amazons3exception: provisioning code must provided" tried configurationclient.authenticationregion = "my provisioning code" can insert it("my provisioning code") in order fix exception? amazon s3 class, amazon s3 property should modified? know how can fix it? comment or idea help. time.

after meeting cleversafe told me have use bucketregionname.so used exception message "xml malformed exception " see more detail in https://github.com/aws/aws-sdk-net/issues/396(i not additional information awssdk .net repository). conclusion cleversafe not support createbucket using awssdk #c 3.1.6 3.5 .net


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -