title: Uploading a file to a bucket in Amazon S3 failing with "Maximum number of retry attempts reached"
body: <p>I have been trying to create buckets and upload files to Amazon S3 using their .net SDK.
  I am able to create the buckets and specify that they be created in the EU region. The code used to create the buckets is as below</p>
  
  <pre><code>PutBucketRequest request = new PutBucketRequest();
  request.WithBucketName(bucketName)
         .WithBucketRegion(S3Region.EU);
  
  client.PutBucket(request);
  </code></pre>
  
  <p>I then proceed to upload a file to the bucket using the following code:</p>
  
  <pre><code>PutObjectRequest request = new PutObjectRequest();
  request.WithBucketName(bucketName)
      .WithCannedACL(S3CannedACL.PublicRead)
      .WithKey(remoteFileName)
      .WithInputStream(uploadFileStream);
  </code></pre>
  
  <p>The file upload code fails with the error "Maximum retry attempts reached."</p>
  
  <p>Can anyone let me know what else I need to be doing in order for the upload to work?</p>
  
  <p>Thanks.       </p>
  
  <p><strong>EDIT:</strong> Trying to upload a file to the same bucket using the AWS Management Console works fine.</p>