[英]'Amazon.Runtime.Internal.FallbackInternalConfigurationFactory' threw an exception
s3Client = new AmazonS3Client(new BasicAWSCredentials(apcong.Value.AWSACCESSKEY, apcong.Value.AWSSECRETKEY), RegionEndpoint.USEast1);
不適用於 .net 核心 3.1
我試圖創建 AmazonS3Client 但它始終是 null 並拋出 FallbackInternalConfigurationFactory 異常
"InnerException": {
"ClassName": "System.TypeInitializationException",
"Message": "The type initializer for 'Amazon.Runtime.Internal.Settings.PersistenceManager' threw an exception.",
"Data": null,
"HelpURL": null,
"StackTraceString": " at Amazon.Util.Internal.SettingsManager.GetSettings()\r\n at Amazon.Util.Internal.SettingsManager.TryGetObjectByProperty(String propertyName, String value, String& uniqueKey, Dictionary`2& properties)\r\n at Amazon.Runtime.CredentialManagement.NetSDKCredentialsFile.TryGetProfile(String profileName, CredentialProfile& profile)\r\n at Amazon.Runtime.CredentialManagement.CredentialProfileStoreChain.TryGetProfile(String profileName, CredentialProfile& profile)\r\n at Amazon.Runtime.Internal.ProfileInternalConfiguration.Setup(ICredentialProfileSource source, String profileName)\r\n at Amazon.Runtime.Internal.FallbackInternalConfigurationFactory.Reset()\r\n at Amazon.Runtime.Internal.FallbackInternalConfigurationFactory..cctor()",
"RemoteStackTraceString": null,
"TypeName": "Amazon.Runtime.Internal.Settings.PersistenceManager"
},
"HelpURL": null,
"StackTraceString": " at Amazon.Runtime.ClientConfig.get_RetryMode()\r\n at Amazon.Runtime.AmazonServiceClient.BuildRuntimePipeline()\r\n at WebApp.Controllers.SpeakerDiarizationController.ProcessAudioByTrnscribeJob(GeneralObj obj) in SpeakerDiarizationController.cs:line 58",
"TypeName": "Amazon.Runtime.Internal.FallbackInternalConfigurationFactory"
}
AWSSDK.S3 3.3.104 為我工作更新你所有的 awssdk 引用到相同的版本,如果你跳過任何一個來降級,事情將是相同的
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.