[Mono-dev] mono - Remoting - XSP
Marc Van Laer
marc.vanlaer at appgenie.com
Wed Apr 9 17:14:57 EDT 2008
Hi,
I have the following question:
I have succesfuly build a client - server application based on .Net 2.0 remoting.
The client piece works fine on Windows (.Net 2.0) and on SLED (mono 1.9).
The server piece works fine on Windows as a stand alone application, and integrated underneath IIS.
The server piece does not work on SLED nor as stand alone nor underneath XSP2.
Code sample Server piece:
SoapServerFormatterSinkProvider serverFormatter = new SoapServerFormatterSinkProvider();
serverFormatter.TypeFilterLevel = System.Runtime.Serialization.Formatters.TypeFilterLevel.Full;
Hashtable ht = new Hashtable();
ht["name"] = "HydraSSH";
//ht["port"] = 8081; // uncommented in stand alone, commented in IIS
//ht["authorizedGroup"] = "everyone"; // uncommented in stand alone, commented in IIS
channel = new HttpChannel(ht, null, serverFormatter);
ChannelServices.RegisterChannel(channel, false);
string identifier = "HydraSSH.soap";
WellKnownObjectMode mode = WellKnownObjectMode.Singleton;
WellKnownServiceTypeEntry entry = new WellKnownServiceTypeEntry(typeof(ServerTalk), identifier, mode);
RemotingConfiguration.RegisterWellKnownServiceType(entry);
Code sample Client piece:
object obj = Activator.GetObject(typeof(ServerTalk), "http://localhost:8081/HydraSSH.soap");
I get the following error:
System.Runtime.RemotingException - No receiver for url HydraSSH.soap
How far is remoting (HttpChannel) implemented in mono?
Please advice.
More information about the Mono-devel-list
mailing list