all groups > dotnet remoting > june 2007 >
You're in the

dotnet remoting

group:

have duplicate wellknown types with different url?


have duplicate wellknown types with different url? Les Caudle
6/11/2007 8:42:10 PM
dotnet remoting:
I'd like to have this in my app.config

<client>
<wellknown type="MyApp.Remoting.IRemoteServer, Interface"
url="tcp://172.16.0.4:8096/Rmt" />

<wellknown type="MyApp.Remoting.IRemoteServer, Interface"
url="tcp://172.16.0.101:8096/Rmt" />

</client>

But, the duplicate wellknown type causes an exception at:

RemotingConfiguration.Configure("MyApp.exe.config",false);

----
My goal is to access the same interface of an object located in two different
locations.

I've tried having just the single entry in the config file, and changing the
ObjectUrl value, but it is read-only:

foreach (WellKnownClientTypeEntry entr in
RemotingConfiguration.GetRegisteredWellKnownClientTypes()) {
entr.ObjectUrl = "tcp://172.16.0.101:8096/Rmt"
}

Is there some way I can get around this? A way to use the exact same interface
at two different url's?
--
Re: have duplicate wellknown types with different url? Les Caudle
6/11/2007 10:28:59 PM
On Mon, 11 Jun 2007 20:42:10 -0500, Les Caudle <DotNetWannabe@newsgroup.nospam>
[quoted text, click to view]

AddThis Social Bookmark Button