I'm receiving S3 errors when running a project in Visual Studio 2019, but which works just fine in VS 2017. The error happens when instantiating an AmazonS3Client :
AmazonS3Client s3Client = new AmazonS3Client(RegionEndpoint.USEast1);
and getting the error:
System.ArgumentException
HResult=0x80070057
Message=An item with the same key has already been added. Key: System.Collections.Generic.Dictionary
2[System.String,System.Collections.Generic.Dictionary2[System.String,System.Object]]
Source=System.Private.CoreLib
StackTrace:
at System.ThrowHelper.ThrowAddingDuplicateWithKeyArgumentException[T](T key)
hello ~
have some issues trying to run aws-sdk-net on my .net v4.7 plugin.
I require to am trying to authenticate to S3 bucket via cognito identity, however there seems to be an exception thrown when I attempt to create a CognitoAWSCredential.
Exception thrown: 'System.TypeLoadException' in AWSSDK.CognitoIdentity.dll
HttpClient client = new HttpClient();
HttpRequestMessage request = new HttpRequestMessage(new HttpMethod("POST"), _configuration["AppSettings:SendFeedBackTaskUrl"]);
request.Headers.Add("x-api-key", _configuration["AppSettings:SendFeedBackTaskUrlCode"]);
string data = $"{{\"completedTaskId\":\"{currentTaskId.ToString()}\",\"companyCode\":\"{companyCode}\"}}";
request.Content = new StringContent(data, Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
Hello guys, I'm having the exactly same issue that user "MidgetJake" asked on stackoverflow regarding "Amazon GameLift realtime client stops receiving messages after being accepted".
Can someone take a look on it? I would really appreciate any help.