Hi,

Has anyone any idea to resolve this problem,

I tried to use a remoting appender like this :
<appender name="RemotingAppender" type="log4net.Appender.RemotingAppender" >
      <sink value="tcp://localhost:8085/LoggingSink" />
      <lossy value="false" />
      <bufferSize value="95" />
      <onlyFixPartialEventData value="true" />
</appender>

in an application which run itself a Remoting (which has nothing to do with the log4net Remoting). The logger with the remoting appender goes well but the Remoting of the app can't be initialize (Exception : Tcp channel already registered)

Here the code of the app :
Imports log4net
Imports System.Runtime.Remoting

'Configure log4net using the .config file
<Assembly: log4net.Config.XmlConfigurator()>

Module Module1

' If this log Object have a remoting appender, RemotingConfiguration.Configure... will fail Private ReadOnly log As log4net.ILog = log4net.LogManager.GetLogger(System.Refl
ection.MethodBase.GetCurrentMethod().DeclaringType)

    Sub Main()
Try RemotingConfiguration.Configure(AppDomain.CurrentDomain.SetupInformatio
n.ConfigurationFile)
        Catch ex As Exception
            Throw ex
        End Try
    End Sub

End Module


Reply via email to