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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ