-
-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Labels
bugIssues describing a bug or pull requests fixing a bug.Issues describing a bug or pull requests fixing a bug.
Description
Describe the bug
When Serilog.Exceptions is configured only in appsettings.json (not in code) we get a runtime load error
Could not load file or assembly 'Serilog.Exceptions, Culture=neutral, PublicKeyToken=null'
As Serilog.Exceptions have a strong name, PublicKeyToken != null and CLR cannot find proper assembly to load.
Steps to reproduce
- configure appsettings.json to load Serilog.Exceptions
"Serilog": {
"Using": [ "Serilog.Exceptions" ],
"Enrich": [
"WithExceptionDetails",
]
} - Ensure to not explicitly declare WithExceptionDetails in code to avoid explicit load os Serilog.Exceptions assembly
- Start the application
Expected behaviour
We expect the application to start when Serilog.Exceptions is configured only in appsettings.json.
Metadata
Metadata
Assignees
Labels
bugIssues describing a bug or pull requests fixing a bug.Issues describing a bug or pull requests fixing a bug.