17
Views
1
Comments
[Amazon Simple Storage Service (S3)] Could not load type 'Amazon.Runtime.IDefaultConfiguration' from assembly 'AWSSDK.Core
amazon-simple-storage-service-s3
Reactive icon
Forge component by Platform Maintenance
Application Type
Reactive
Platform Version
11.19.0 (Build 38072)

Hi,

We are integrating with S3 to save files at runtime. We are getting below error at runtime on Dev when trying to upload the file using Object_Put action of the AmazonS3_IS module of the component. 

Could not load type 'Amazon.Runtime.IDefaultConfiguration' from assembly 'AWSSDK.Core, Version=3.3.0.0, Culture=neutral, PublicKeyToken=s6df5sd76f7as733hr8f

Could not load type 'Amazon.Runtime.IDefaultConfiguration' from assembly 'AWSSDK.Core, Version=3.3.0.0, Culture=neutral, PublicKeyToken=885c28607f98e604'.
   at ssAmazonS3_IS.RssExtensionAmazonS3_ext.MssS3_PutFile(HeContext heContext, IRecord inParamAuthenticationInfo, String inParamBucketName, String inParamKey, Byte[] inParamBinary, String inParamStorageClass, Boolean inParamIsPublicRead, RecordList inParamMetadata)
   at ssAmazonS3_IS.Actions.ActionObject_Put(HeContext heContext, STAuthenticationStructure inParamAWSCredentials, String inParamBucketName, String inParamKey, Byte[] inParamFile, String inParamStorageClass, Boolean inParamIsPublicRead, RLKeyValuePairList inParamMetaData)
   at ssForm_CW.RsseSpaceAmazonS3_IS.MssObject_Put(HeContext heContext, IRecord inParamAWSCredentials, String inParamBucketName, String inParamKey, Byte[] inParamFile, String inParamStorageClass, Boolean inParamIsPublicRead, RecordList inParamMetaData)
at ssForm_CW.Actions.ActionFileField_S3Upload(HeContext heContext, Byte[] inParamBinary, String inParamKey, Boolean& outParamIsSuccess)

The architecture is such that the upload to S3 is a part of a common block of the common widget module which is used in different UI modules. When the block is used in the screen from the same module then it is working but when it is used in another module then we get the above error. We have tried the S3_PutObject from the AmazonS3_ext extension directly but it is giving the same issue.

All the configuration regarding authentication is completed.

Hello,


The error you're reporting usually happens in a DLL Hell scenario. 


This usually happens when you have more than one version of a library being used on your applications. In this case, it seems to be the AWSSDK.Core.dll since that is what the error points to. 

You'll have to guarantee that all extensions are referencing the same dll version of the AWSSDKCore.dll to avoid this sort of problems.

You can read more about it here : https://success.outsystems.com/support/troubleshooting/application_development/library_hell_why_are_changes_in_a_producer_not_reflected_in_the_consumers/ 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.