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
已提問 5 個月前檢視次數 126 次
1 個回答
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
已回答 5 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南