kejpa Posted February 1, 2006 Posted February 1, 2006 Hi, I have managed to get a hold of the remote object in the client app by using the following code 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 Quote
Administrators PlausiblyDamp Posted February 1, 2006 Administrators Posted February 1, 2006 Remoting has it's own particular file format for configuration, This Link gives a detailed example / usage of it. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
kejpa Posted February 6, 2006 Author Posted February 6, 2006 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 Quote
Administrators PlausiblyDamp Posted February 6, 2006 Administrators Posted February 6, 2006 Don't think it has changed a great deal since version 1.0 too be honest. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
kejpa Posted February 7, 2006 Author Posted February 7, 2006 Hi! I've read the pages and I can't find out how to get by without hardcoding in the object assignment. /Kejpa Quote
Administrators PlausiblyDamp Posted February 7, 2006 Administrators Posted February 7, 2006 http://www.c-sharpcorner.com/Code/2004/Sept/NetRemoting.asp http://www.dotnetjohn.com/articles.aspx?articleid=92 Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.