elastic / elastic/ecs-dotnet

[BUG] Could not load type 'Elastic.Ingest.Elasticsearch.ElasticsearchChannelOptionsBase`1'

Open
#551 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
HTML
Stars
137
Forks
70
PR merge metrics
No merged PRs in 30d

Description

ECS project: Elastic.Serilog.Sinks

ECS schema version: latest

ECS .NET assembly version: latest

.NET framework / OS: net4.8 / Windows

After upgrade of Elastic.Ingest.Elasticsearch to version 0.18 or newer, I get the following exception at runtime:

Could not load type 'Elastic.Ingest.Elasticsearch.ElasticsearchChannelOptionsBase`1' from assembly 'Elastic.Ingest.Elasticsearch, Version=0.0.0.0, Culture=neutral, PublicKeyToken=069ca2728db333c1'.

at Elastic.Serilog.Sinks.ElasticsearchSink`1..ctor(ElasticsearchSinkOptions`1 options) in /home/runner/work/ecs-dotnet/ecs-dotnet/src/Elastic.Serilog.Sinks/ElasticsearchSink.cs:line 148
at Elastic.Serilog.Sinks.ElasticsearchSinkExtensions.Elasticsearch[TEcsDocument](LoggerSinkConfiguration loggerConfiguration, ICollection`1 nodes, Action`1 configureOptions, Action`1 configureTransport, Boolean useSniffing, LoggingLevelSwitch levelSwitch, LogEventLevel restrictedToMinimumLevel) in /home/runner/work/ecs-dotnet/ecs-dotnet/src/Elastic.Serilog.Sinks/ElasticsearchSinkExtensions.cs:line 87
....

The cause of the problem is that ElasticsearchChannelOptionsBase has been renamed to IngestChannelOptionsBase in Elastic.Ingest.Elasticsearch v0,18

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.