Configuring remoting

kejpa

Junior Contributor
Joined
Oct 10, 2003
Messages
320
Hi,
I have managed to get a hold of the remote object in the client app by using the following code
Visual Basic:
oRemoteRandomServer = CType(Activator.GetObject(GetType(iMyTest), "tcp://localhost:6100/RandomServer.rem"), iMyTest)

But I don't like the idea of hard coding the computer name and port#, the best approach would be to get the settings from app.config

Any help appreciated
/Kejpa
 
Hi,
after a look at it I think it's covering .NET 1.1 and I'm in 2.0 :(

I guess the easiest way is to parse the app.config file

Best regards
/Kejpa
 
Hi!
I've read the pages and I can't find out how to get by without hardcoding in the object assignment.

/Kejpa
 
Back
Top