gdziadkiewicz commented on issue #193: URL: https://github.com/apache/logging-log4net/issues/193#issuecomment-2442668817
Hi @NoahHabanero , I did the move to log4net 3.0.1 in log4net.Ext.Json. There is a pre-release version `3.0.1-develop1504356721` you can test. The funny thing I found out while testing if it resolves your problems is that the config in the repro is invalid. Instead of `<layout type="log4net.Layout.PatternLayout, log4net.Ext.Json">` you probably meant `<layout type="log4net.Layout.SerializedLayout , log4net.Ext.Json">` . Can you check if new version and the config change resolve your problem? On my side the error with the config change and old log4net.Ext.Json version is: ``` log4net:ERROR XmlHierarchyConfigurator: Failed to construct object of type [log4net.Layout.SerializedLayout] Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeLoadException: Derived method 'Convert' in type 'log4net.Layout.Pattern.JsonPatternConverter' from assembly 'log4net.Ext.Json, Version=2.0.10.1, Culture=neutral, PublicKeyToken=null' cannot reduce access. at log4net.Layout.SerializedLayout.ActivateOptions() at log4net.Layout.PatternLayout..ctor(String pattern) at log4net.Layout.SerializedLayout..ctor() at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions) --- End of inner exception stack trace --- at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.CreateObjectFromXml(XmlElement element, Type defaultTargetType, Type typeConstraint) log4net:ERROR Failed to create object to set param: layout logs should be logging. Check the log file in the Logs folder. ``` which corresponds nicely to the code change (adjusting access modifier) I did during the move from 2 to 3. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@logging.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org