I am currently upgrading Log4net from 1.2.10.0 to 1.2.11.0. Configuration is ok, everything is looking fine, it works for me also with Chainsaw, logs are created and I see actuall stuff logged.
But i get:
log4net:ERROR Failed to Marshal remoting sink
System.MethodAccessException:
Attempt by method 'log4net.Plugin.RemoteLoggingServerPlugin.Attach(log4net.Repository.ILoggerRepository)' to access method 'System
.Runtime.Remoting.RemotingServices.Marshal(System.MarshalByRefObject, System.Str
ing, System.Type)' failed.
at log4net.Plugin.RemoteLoggingServerPlugin.Attach(ILoggerRepository reposito
ry)
https://github.com/apache/log4net/blob/trunk/src/Plugin/RemoteLoggingServerPlugin.cs
I don't really know this new security features in .net and I want to avoid "works on my computer" problems.
Is there way to fix this error? Eventually how not to use stuff that calls this Marshal on remoting services, and could log to Chainsaw?