Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.3.10 - Error if configure columns from JSON configuration #31

Closed
Du57iN opened this issue Oct 21, 2021 · 3 comments
Closed

3.3.10 - Error if configure columns from JSON configuration #31

Du57iN opened this issue Oct 21, 2021 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@Du57iN
Copy link

Du57iN commented Oct 21, 2021

Exception: "Cannot create instance of type 'Serilog.Sinks.PostgreSQL.ColumnWriters.SinglePropertyColumnWriter' because it is missing a public parameterless constructor."

System.InvalidOperationException at Microsoft.Extensions.Configuration.ConfigurationBinder.CreateInstance(Type type)\r\n at Microsoft.Extensions.Configuration.ConfigurationBinder.BindInstance(Type type, Object instance, IConfiguration config, BinderOptions options)\r\n at Microsoft.Extensions.Configuration.ConfigurationBinder.BindDictionary(Object dictionary, Type dictionaryType, IConfiguration config, BinderOptions options)\r\n at Microsoft.Extensions.Configuration.ConfigurationBinder.AttemptBindToCollectionInterfaces(Type type, IConfiguration config, BinderOptions options)\r\n at Microsoft.Extensions.Configuration.ConfigurationBinder.BindInstance(Type type, Object instance, IConfiguration config, BinderOptions options)\r\n at Microsoft.Extensions.Configuration.ConfigurationBinder.Get(IConfiguration configuration, Type type, Action1 configureOptions)\r\n at Microsoft.Extensions.Configuration.ConfigurationBinder.Get(IConfiguration configuration, Type type)\r\n at Serilog.Settings.Configuration.ObjectArgumentValue.ConvertTo(Type toType, ResolutionContext resolutionContext)\r\n at Serilog.Settings.Configuration.ConfigurationReader.<>c__DisplayClass18_2.<CallConfigurationMethods>b__3(<>f__AnonymousType92 <>h__TransparentIdentifier0)\r\n at System.Linq.Utilities.<>c__DisplayClass2_03.<CombineSelectors>b__0(TSource x)\r\n at System.Linq.Enumerable.SelectListPartitionIterator2.ToList()\r\n at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source)\r\n at Serilog.Settings.Configuration.ConfigurationReader.CallConfigurationMethods(ILookup2 methods, IList`1 configurationMethods, Object receiver)\r\n at Serilog.Settings.Configuration.ConfigurationReader.ApplySinks(LoggerConfiguration loggerConfiguration)\r\n at Serilog.Settings.Configuration.ConfigurationReader.Configure(LoggerConfiguration loggerConfiguration)\r\n at Serilog.Configuration.LoggerSettingsConfiguration.Settings(ILoggerSettings settings)\r\n at Serilog.ConfigurationLoggerConfigurationExtensions.Configuration(LoggerSettingsConfiguration settingConfiguration, IConfiguration configuration, String sectionName, DependencyContext dependencyContext)\r\n at Serilog.ConfigurationLoggerConfigurationExtensions.Configuration(LoggerSettingsConfiguration settingConfiguration, IConfiguration configuration, DependencyContext dependencyContext)\r\n at MyDox.WebApp.Program.<>c.b__1_1(HostBuilderContext context, IServiceProvider services, LoggerConfiguration configuration) ...

@SeppPenner SeppPenner self-assigned this Oct 24, 2021
@SeppPenner SeppPenner added the bug Something isn't working label Oct 24, 2021
@SeppPenner
Copy link
Contributor

Ah, I see. This was an error introduced with the sorting functionality, I guess. I will try to provide a fix soon.

@SeppPenner
Copy link
Contributor

Version 3.3.11 fixes this. Can you verify that it works, please?

@Du57iN
Copy link
Author

Du57iN commented Nov 1, 2021

Yes, it;s working in 3.3.11
Thank you

@Du57iN Du57iN closed this as completed Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants