Skip to content

Error when connecting to Amazon S3 #108

@jmourinho

Description

@jmourinho

Hi,

i am having this error when connecting to the amazon:

System.TypeLoadException: 'Method 'DetermineServiceOperationEndpoint' in type 'Amazon.S3.AmazonS3Config' from assembly 'AWSSDK.S3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=XXXXXXXXXXXXX' does not have an implementation.'

My code:

`public S3ContentStorageService(S3StorageOptions options, ILogger logger)
{
_options = options;
_logger = logger;

// Initialize FluentStorage with AWS S3 
StorageFactory.Modules.UseAwsStorage();

  AWSCredentials myS3Credentials = new BasicAWSCredentials(_options.AccessKey, _options.SecretKey);

_storage = StorageFactory.Blobs.AwsS3(myS3Credentials, _options.BucketName, _options.Region);

}`

I am using the latest nuget packages for FluentStorage and FluentStorage.AWS

I would be quite thankful if you can help!

Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions