現在、Log4net を 1.2.10.0 から 1.2.11.0 にアップグレードしています。構成は問題ありません。すべて問題ないように見えます。Chainsaw でも動作し、ログが作成され、実際のログが記録されています。
しかし、私は得る:
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
私は .net のこの新しいセキュリティ機能をよく知らないので、「自分のコンピューターで動作する」問題を回避したいと考えています。
このエラーを修正する方法はありますか? 最終的に、リモート サービスでこの Marshal を呼び出し、Chainsaw にログを記録できるものを使用しないようにするにはどうすればよいでしょうか?