Skip to content

Object reference not set to an instance of an object #41

Answered by wheelersf
ihorkolucky asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Ihorkolucky,

Should be and easy fix. Just add market reference to the the credentials object:

AmazonConnection amazonConnection = new AmazonConnection(new AmazonCredential()
{
AccessKey = ";alsdkjf;lsd",
SecretKey = "e/;alsdkjf;alsdjk",
RoleArn = "arn:aws:iam::;lasdjkf;aldsjk:role/;lasdjkf;aldkj",
ClientId = "amzn1.application-oa2-client.l;asjdf;ladsjk",
ClientSecret = ";alsdjf;ldsjkf",
RefreshToken = "Atzr|;alskd;lasdkj",
MarketPlace = MarketPlace.US
});

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ihorkolucky
Comment options

@abuzuhri
Comment options

Answer selected by ihorkolucky
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants