TransferUtility works on several PC's but not a new one.

0

I have the follow code snippet working successfully on at least 2 PC's (Windows 10, Visual Studio 2019)

gAWSAccessKey = "***************"
        gAWSSecretKey = "***********************"
        Dim gClient As New AmazonS3Client(gAWSAccessKey, gAWSSecretKey, gRegion)
        Dim fileTransferUtility = New TransferUtility(gClient)
        Try
            wPath = wArgs(0)
            wFile = wArgs(1)
            Console.WriteLine("Archiving " & wFile & " to Cloud ")
            'wPath = "C:\G-Apps\GABL\GABL-pictures\"
            fileTransferUtility.UploadAsync(wPath, gBucket, wFile).Wait()

I have just tried to copy this code to a new PC (Windows 11, Visual Studio 2019)

But when I execute the code I get :-The request signature we calculated does not match the signature you provided. Check your key and signing method. But the keys are working on my other pc's. How do I get new keys? And if I have new keys, will the existing pcs start to fail - can the system cope with different keys?

Thanks

TOPSie
gefragt vor 5 Monaten126 Aufrufe
1 Antwort
0

OK - I think I have sorted it. The new code defaulted to the latest version of AWSSDK Core - version 3.7.300... My old code was running of 3.7.8.11

So I downgraded the new code to the older SDK stuff - and it now works

Phew

TOPSie
beantwortet vor 5 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen