Skip to content
This repository was archived by the owner on Apr 18, 2022. It is now read-only.
This repository was archived by the owner on Apr 18, 2022. It is now read-only.

System.IO.FileNotFoundException: Could not load file or assembly 'Serilog.FullNetFx, Version=1.5.0.0. #33

@CA-WilliamDer

Description

@CA-WilliamDer

When I issue the .WriteTo.AmazonKinesis, I am getting a System.IO.FileNotFoundException: Could not load file or assembly 'Serilog.FullNetFx, Version=1.5.0.0.

I'm using .NET 4.5.2 and Serilog.Sinks.AmazonKinesis v2.1.97 which I installed via nuget into my Visual Studio solution.

Both the Kinesis stream and the Kinesis client to talk to it are created successfully. Here is the code snippet which is essentially taken from github sample app:

            const string streamName = "my-splunk-kinesis";
            const int shardCount = 1;

            var client = new AmazonKinesisClient(RegionEndpoint.USEast1);
            var streamOk = KinesisApi.CreateAndWaitForStreamToBecomeAvailable(
                kinesisClient: client,
                streamName: streamName,
                shardCount: shardCount
            );

            return new LoggerConfiguration()
                .WriteTo.AmazonKinesis(
                    kinesisClient: client,
                    streamName: streamName,
                    period: TimeSpan.FromSeconds(2),
                    bufferBaseFilename: "./logs/kinesis-buffer"
                )
                .CreateLogger();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions