פורסם 2007 באוגוסט 3118 שנים אני הקמתי בלקוח חיבור לשרת עד לפה הכל בסדר התחבר לי Properties.Settings.Default.ip = "localhost"; TcpChannel chan = new TcpChannel(); ChannelServices.RegisterChannel(chan, false); obj = (IRemoting_func_able)Activator.GetObject( typeof(game.IRemoting_func_able), "tcp://"+Properties.Settings.Default.ip.ToString()+":8085/server"); if (obj == null) MessageBox.Show("Could not locate server");עכשיו אני רוצה להפוך אותו לשרת עם: TcpChannel chan1 = new TcpChannel(8087); ChannelServices.RegisterChannel(chan1, false); RemotingConfiguration.RegisterWellKnownServiceType( Type.GetType("game.Remoting.Client_Remote_Func"), "Clien1", WellKnownObjectMode.SingleCall);עכשיו הוא לא נותן לי לפתוח 2 ערוצי TcpChannel הוא עף לי בגלל השורה הזו בפעם ה 2 ChannelServices.RegisterChannel(chan1, false);למה הוא עף לי בגללה מישהו יודע?
ארכיון
דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.