title: AWS SDK for .NET can't access credentials with IIS
body: <p>I'm having some trouble accessing the AWS credentials in the SDK Store, but it seems to only be a problem when running under IIS. If I hit the same code by invoking an NUnit test with ReSharper the dependency injection works and the S3 client is able to authenticate.</p>
  
  <pre><code>IAmazonS3 s3Client = new AmazonS3Client();
  </code></pre>
  
  <p>Has anyone else run into this problem? How were you able to get the dependency injection to work?</p>
  
  <p>[Edit]</p>
  
  <p>The credential file approach has been recommended for use with IIS because the SDK Store encrypts the credentials differently for each user. I can only get a credentials file to work if I hard-code the path in the appSettings which I do not want to do. </p>
  
  <p>Where would the SDK look for the credentials file besides the below paths?</p>
  
  <pre><code>C:\Users\&lt;IIS_app_name&gt;\.aws\credentials
  C:\Users\&lt;my_domain_user&gt;\.aws\credentials
  </code></pre>