jeudi 8 janvier 2015

AWS error "EC2Client is 'friend'" - bug in SDK for .NET?

I am trying to write a program in vb.net which uses AWS's Web Service to change the permissions for a security group in EC2. I have installed the AWS SDK for .Net.


I found an example of how to do this in C# on http://ift.tt/1zWkjgA (page 39).


I have managed to translate the code into vb, but I am getting an error concerning the 2nd of the following two lines:


Dim ec2Client As New AmazonEC2Client(credentials, config) Dim ingressResponse As AuthorizeSecurityGroupIngressResponse() = ec2Client.AuthorizeSecurityGroupIngress(ingressRequest)


The error Visual Studio gives for this second line is: 'Amazon.EC2.AmazonEC2Client.Friend Function AuthorizeSecurityGroupIngress(request As Amazon.EC2.Model.AuthorizeSecurityGroupIngressRequest) As Amazon.EC2.Model.AuthorizeSecurityGroupIngressResponse' is not accessible in this context because it is 'Friend'.


I have read everything I can find on the topic and have posted this on the AWS forum but nothing is helping me. All other AWS references within Visual Studio seem fine, so I am beginning to wonder whether this is a bug in the SDK for .NET. I I am desperate for help as I cannot call the AWS web-service without this line.


Any suggestions would be greatly appreciated!





Aucun commentaire:

Enregistrer un commentaire