Amazon Route 53 Client Exception on creation

user1631477 picture user1631477 · Nov 29, 2013 · Viewed 10.4k times · Source

I have a problem with amazon sdk for .net while creating an Amazon Route 53 Client calling

AWSClientFactory.CreateAmazonRoute53Client(AccessKeyID, SecretAccessKeyID);

I get an Exception that tells

"No RegionEndPoint or ServiceURL configured".

Also tried the region endpoint indicated there http://docs.aws.amazon.com/general/latest/gr/rande.html#r53_region with no result.

Can anybody help me?

Answer

rsc picture rsc · Jan 8, 2014

I had the same problem when using

objClient = New AmazonS3Client(AccessKeyID, SecretAccessKeyID)

I solved using:

objClient = New AmazonS3Client(AccessKeyID, SecretAccessKeyID, Amazon.RegionEndpoint.USEast1)

(My s3 was the USEast1 = US Standard)