Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/304.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# AmazonS3Client找不到路径的一部分_C#_Amazon Web Services_Amazon S3 - Fatal编程技术网

C# AmazonS3Client找不到路径的一部分

C# AmazonS3Client找不到路径的一部分,c#,amazon-web-services,amazon-s3,C#,Amazon Web Services,Amazon S3,尝试使用直接传递的AccessKey、Secret和Region实例化AmazonS3Client对象(我也尝试使用BasicAWSCredentials对象,结果相同)。我们已经有了一个凭证存储机制,我不想仅仅为了这个过程而尝试使用一个单独的外部存储 我还尝试了使用BasicAWSCredentials对象,得到了相同的结果。我还让它在本地注册了个人资料,希望它能正常工作 IAmazonS3 client = new AmazonS3Client(AccessKey, Secret, Regi

尝试使用直接传递的
AccessKey
Secret
Region
实例化
AmazonS3Client
对象(我也尝试使用
BasicAWSCredentials
对象,结果相同)。我们已经有了一个凭证存储机制,我不想仅仅为了这个过程而尝试使用一个单独的外部存储

我还尝试了使用
BasicAWSCredentials
对象,得到了相同的结果。我还让它在本地注册了个人资料,希望它能正常工作

IAmazonS3 client = new AmazonS3Client(AccessKey, Secret, RegionEndpoint.USEast1);
结果是出现以下错误:

引发异常:中的“System.IO.DirectoryNotFoundException” mscorlib.dll

其他信息:找不到路径的一部分 “C:\Users\.aws\credentials”

可能的例子?