[Mono-bugs] [Bug 379630] New: Cannot create server and client UNIX Channels in one program
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Apr 14 07:01:04 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=379630
Summary: Cannot create server and client UNIX Channels in one
program
Product: Mono: Class Libraries
Version: 1.9.0
Platform: i586
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: P5 - None
Component: System
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: rook at roo.k.pl
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Compiling and running:
Foo.cs:
public static class Foo
{
public static void Main(string[] args)
{
System.Runtime.Remoting.RemotingConfiguration.Configure("remo.xml");
System.Activator.GetObject(typeof(System.IDisposable),
"unix:///tmp/Foo?/Abc");
}
}
remo.xml:
<configuration>
<system.runtime.remoting>
<application>
<channels>
<channel
type="Mono.Remoting.Channels.Unix.UnixServerChannel,Mono.Posix,
Version=2.0.0.0,
Culture=neutral, PublicKeyToken=0738eb9f132ed756" path="/tmp/AppServer" />
</channels>
</application>
</system.runtime.remoting>
</configuration>
Yields:
Unhandled Exception: System.Runtime.Remoting.RemotingException: Channel unix
already registered
at System.Runtime.Remoting.Channels.ChannelServices.RegisterChannel (IChannel
chnl, Boolean ensureSecurity) [0x00000]
at System.Runtime.Remoting.Channels.ChannelServices.RegisterChannel (IChannel
chnl) [0x00000]
at
System.Runtime.Remoting.Channels.ChannelServices.CreateClientChannelSinkChain
(System.String url, System.Object remoteChannelData, System.String& objectUri)
[0x00000]
at System.Runtime.Remoting.RemotingServices.GetClientChannelSinkChain
(System.String url, System.Object channelData, System.String& objectUri)
[0x00000]
at System.Runtime.Remoting.RemotingServices.GetOrCreateClientIdentity
(System.Runtime.Remoting.ObjRef objRef, System.Type proxyType, System.Object&
clientProxy) [0x00000]
at System.Runtime.Remoting.RemotingServices.GetRemoteObject
(System.Runtime.Remoting.ObjRef objRef, System.Type proxyType) [0x00000]
at System.Runtime.Remoting.RemotingServices.Connect (System.Type
classToProxy, System.String url) [0x00000]
at System.Activator.GetObject (System.Type type, System.String url) [0x00000]
at Foo.Main (System.String[] args) [0x00000]
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list