[Mono-list] Re: Remoting
Robert Jordan
robertj at gmx.net
Mon Oct 17 18:54:19 EDT 2005
Hi Peter,
If RemoteSumsObject has a namespace, you must specify it in the
wellknown-type attribute as well.
Rob
> Hi,
>
> 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
> RemoteSumsClient.exe
> Mono System.Windows.Forms Assembly [Revision: 49925; built: 2005/9/11
> 14:27:24]
> 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,
> RemoteSumsObjectProxy
> in <0x0011c>
> System.Runtime.Remoting.RemotingConfiguration:ReadConfigFile
> (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" ?>
> <configuration>
> <system.runtime.remoting>
> <application>
> <client>
> <wellknown type="RemoteSumsObject,
> RemoteSumsObjectProxy"
> url="tcp://localhost:48600/RemoteSumsObject" />
> </client>
> </application>
> </system.runtime.remoting>
> </configuration>
>
> 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.
>
> Cheers
>
>
> Peter
>
> _______________________________________________
> Mono-list maillist - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
More information about the Mono-list
mailing list