title: AmazonServiceException: Unable to find credentials in .Net Core API
body: <p>can someone help me with this error that is happening. I don't know how to configure aws credentials.</p>
  
  <p>My appliaction is .Net Core 2.0 API.</p>
  
  <p>In localhost it works great since the file it is in a certain folder in C:/.</p>
  
  <p>But when I am publishing it in IIS on a server its throwing error that is Unable to find credentials.</p>
  
  <p>Here's the full error:
   An unhandled exception occurred while processing the request.</p>
  
  <pre><code>AmazonServiceException: Unable to find credentials
  
  Exception 1 of 3:
  Amazon.Runtime.AmazonClientException: Unable to find the 'default' profile in CredentialProfileStoreChain.
  at Amazon.Runtime.FallbackCredentialsFactory.GetAWSCredentials(ICredentialProfileSource source) in E:\JenkinsWorkspaces\v3-trebuchet-release\AWSDotNetPublic\sdk\src\Core\Amazon.Runtime\Credentials\FallbackCredentialsFactory.cs:line 72
  at Amazon.Runtime.FallbackCredentialsFactory.GetCredentials(Boolean fallbackToAnonymous) in E:\JenkinsWorkspaces\v3-trebuchet-release\AWSDotNetPublic\sdk\src\Core\Amazon.Runtime\Credentials\FallbackCredentialsFactory.cs:line 112
  
  Exception 2 of 3:
  System.InvalidOperationException: The environment variables AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY/AWS_SESSION_TOKEN were not set with AWS credentials.
  at Amazon.Runtime.EnvironmentVariablesAWSCredentials.FetchCredentials() in E:\JenkinsWorkspaces\v3-trebuchet-release\AWSDotNetPublic\sdk\src\Core\Amazon.Runtime\Credentials\_bcl+coreclr\EnvironmentVariablesAWSCredentials.cs:line 80
  at Amazon.Runtime.EnvironmentVariablesAWSCredentials..ctor() in E:\JenkinsWorkspaces\v3-trebuchet-release\AWSDotNetPublic\sdk\src\Core\Amazon.Runtime\Credentials\_bcl+coreclr\EnvironmentVariablesAWSCredentials.cs:line 58
  at Amazon.Runtime.FallbackCredentialsFactory.&lt;&gt;c.&lt;Reset&gt;b__9_1() in E:\JenkinsWorkspaces\v3-trebuchet-release\AWSDotNetPublic\sdk\src\Core\Amazon.Runtime\Credentials\FallbackCredentialsFactory.cs:line 55
  at Amazon.Runtime.FallbackCredentialsFactory.GetCredentials(Boolean fallbackToAnonymous) in E:\JenkinsWorkspaces\v3-trebuchet-release\AWSDotNetPublic\sdk\src\Core\Amazon.Runtime\Credentials\FallbackCredentialsFactory.cs:line 112
  
  Exception 3 of 3:
  System.Net.Http.HttpRequestException: An error occurred while sending the request. ---&gt; System.Net.Http.WinHttpException: The operation timed out
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  at System.Threading.Tasks.RendezvousAwaitable`1.GetResult()
  at System.Net.Http.WinHttpHandler.&lt;StartRequest&gt;d__105.MoveNext()
  --- End of inner exception stack trace --- 
  </code></pre>