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
posta 5 mesi fa126 visualizzazioni
1 Risposta
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
con risposta 5 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande