Skip to content
This repository has been 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

Open
CA-WilliamDer opened this issue Nov 22, 2016 · 3 comments

Comments

@CA-WilliamDer
Copy link

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();
@ben-foster-cko
Copy link

ben-foster-cko commented Jan 10, 2017

We're also blocked by this. Are there plans to upgrade this sink to Serilog 2.0?

@JustinThirkell
Copy link
Contributor

hi there,

sorry but there are no plans to upgrade this sink.
I have no time to work on it myself and the other developer with recent commits (mstepura) sadly died in a tramping/hiking accident just before Christmas.

happy to take PRs or change of ownership but we're unlikely to make any changes ourselves for a while.

@ahydrax
Copy link
Contributor

ahydrax commented Feb 11, 2017

Proposed PR #34

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants