[Mono-bugs] [Bug 81811][Nor] Changed - Log4net Remoting appender don't work with mono
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Jun 5 14:13:13 EDT 2007
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by robertj at gmx.net.
http://bugzilla.ximian.com/show_bug.cgi?id=81811
--- shadow/81811 2007-06-05 12:15:16.000000000 -0400
+++ shadow/81811.tmp.31982 2007-06-05 14:13:13.000000000 -0400
@@ -1,15 +1,15 @@
Bug#: 81811
Product: Mono: Runtime
Version: 1.2
-OS: unknown
+OS: All
OS Details:
Status: NEW
Resolution:
Severity: Unknown
-Priority: Major
+Priority: Normal
Component: remoting
AssignedTo: lluis at ximian.com
ReportedBy: informatique.internet at fiducial.fr
QAContact: mono-bugs at ximian.com
TargetMilestone: ---
URL:
@@ -93,6 +93,33 @@
Created an attachment (id=19375)
LogServer.tar.gz
------- Additional Comments From informatique.internet at fiducial.fr 2007-06-05 12:15 -------
the error is : Cannot create channel sink to connect to URL
+
+------- Additional Comments From robertj at gmx.net 2007-06-05 14:13 -------
+Hubert, if you have the sources, open the file which contains
+the class RemotingAppender and replace ActivateOptions ()
+with this:
+
+public override void ActivateOptions()
+{
+ base.ActivateOptions();
+ m_sinkObj = (IRemoteLoggingSink)
+Activator.GetObject(typeof(IRemoteLoggingSink), m_sinkUrl);
+}
+
+
+The hashtable used by log4net as "channelData" is apparently
+incompatible with mono:
+
+ IDictionary state = new Hashtable();
+ state["typeFilterLevel"] = "Full";
+ m_sinkObj = (IRemoteLoggingSink)
+ Activator.GetObject(typeof(IRemoteLoggingSink), m_sinkUrl, state);
+
+I'm uncertain if this is correct even on MS.NET, but it
+seems to work there.
+
+Am looking at this.
+
More information about the mono-bugs
mailing list