AmazonServiceException Unable to find credentials

0 votes

I have an application which I have created using Visual Studio 2010 AWS SDK toolkit which connects to AWS SNS Service. It works fine when I directly run from VS 2010 Development studio, but when i try to publish web service to Local IIS or dedicated web server it fails with following error Messages.

Amazon.Runtime.AmazonServiceException: Unable to find credentials

I have no idea what is the problem. Any ideas?

Feb 12, 2019 in AWS by datageek
• 3,090 points
3,324 views

1 answer to this question.

0 votes

It should be a problem with AWS credentials. Create a credentials file at any path where you want to access this path from the web service application. Make sure not to include any extensions. The credentials file should contain only the below data:

[default]
aws_access_key_id=[your_access_key]
aws_secret_access_key=[your_secret_key]

After this you need to set the path in app settings  in the Web.config file:

<appSettings>
<add key="AWSProfilesLocation" value="C:\awsfile\credentials" />
<add key="AWSRegion" value="us-east-1" />
</appSettings>

Hope this helped!

answered Feb 12, 2019 by Archana
• 5,640 points

Related Questions In AWS

0 votes
1 answer
+3 votes
3 answers

Unable to login to parse dashboard on AWS

During the first time boot, the application ...