[Mono-list] Remoting

peter apvx95 at dsl.pipex.com
Mon Oct 17 18:36:55 EDT 2005


I've built, compiled and successfully run a simple remoting application 
on Windows using the Microsoft .NET Framework.  The remote object is a 
SingleCall SAO.  Configuration on the client and the server is done with 
configuration files.

When I try to run the application under mono on Linux, the server runs 
just fine, but the client will not start.  Here is the error message:

peter at linux:~/MonoRemotingTest/RemoteSumsClient/bin/Release> ls
RemoteSumsClient.exe  RemoteSumsClient.exe.config  RemoteSumsObjectProxy.dll
peter at linux:~/MonoRemotingTest/RemoteSumsClient/bin/Release> mono 
Mono System.Windows.Forms Assembly [Revision: 49925; built: 2005/9/11 
Keyboard: British keyboard layout
Gtk colorscheme read

Unhandled Exception: System.Runtime.Remoting.RemotingException: 
Configuration file 'RemoteSumsClient.exe.config' could not be loaded: 
Error in element wellknown: Type not found: RemoteSumsObject, 
in <0x0011c> 
(System.String filename)
in <0x0004e> System.Runtime.Remoting.RemotingConfiguration:Configure 
(System.String filename)
in <0x0002b> Msc.RemoteSums.RemoteSumsClientForm:.ctor ()
in (wrapper remoting-invoke-with-check) 
Msc.RemoteSums.RemoteSumsClientForm:.ctor ()
in <0x00018> Msc.RemoteSums.RemoteSumsClientForm:Main ()
peter at linux:~/MonoRemotingTest/RemoteSumsClient/bin/Release>

Here is the client config file contents:

<?xml version="1.0" encoding="utf-8" ?>
				<wellknown	type="RemoteSumsObject, RemoteSumsObjectProxy" 
						url="tcp://localhost:48600/RemoteSumsObject" />

Can anyone see what I'm doing wrong?  You will see from the directory 
listing above that the RemoteSumsObjectProxy.dll file is in the same 
directory as the client executable.  This file contains the metadata 
proxy for the RemoteSumsObject type.



More information about the Mono-list mailing list