Unable to List EC2 insances via API Gateway

98 Views Asked by At

I am using AWS SDK Samples for "AWS EC2 Sample" in C#. When try to compile it gives following error. I have the latest SDK and using VS 2013.

Error 1 'Statement' is an ambiguous reference between 'Amazon.IdentityManagement.Model.Statement' and 'Amazon.Auth.AccessControlPolicy.Statement' c:\users\sabir.mustafa\documents\visual studio 2013\Projects\AwsEC2Sample2\AwsEC2Sample2\Program.cs 174 33 AwsEC2Sample2 Error 2 'Statement' is an ambiguous reference between 'Amazon.IdentityManagement.Model.Statement' and 'Amazon.Auth.AccessControlPolicy.Statement' c:\users\sabir.mustafa\documents\visual studio 2013\Projects\AwsEC2Sample2\AwsEC2Sample2\Program.cs 174 43 AwsEC2Sample2

Error 3 'Amazon.IdentityManagement.Model.Statement' does not contain a definition for 'StatementEffect' c:\users\sabir.mustafa\documents\visual studio 2013\Projects\AwsEC2Sample2\AwsEC2Sample2\Program.cs 174 53 AwsEC2Sample2

Error 4 'Amazon.IdentityManagement.Model.Statement' does not contain a definition for 'Actions' and no extension method 'Actions' accepting a first argument of type 'Amazon.IdentityManagement.Model.Statement' could be found (are you missing a using directive or an assembly reference?) c:\users\sabir.mustafa\documents\visual studio 2013\Projects\AwsEC2Sample2\AwsEC2Sample2\Program.cs 175 23 AwsEC2Sample2

Here is the screenshot

enter image description here

0

There are 0 best solutions below