• λ我爱Aspx >> Asp.Net >> 一步一步学Remoting之一:从简单开始
  • 一步一步学Remoting之一:从简单开始

  • :aspxer  Դ:internet  :2007-5-15 20:46:08  ؼ:
  • string [] args)

    {

    RemoteObject.MyObject app = (RemoteObject.MyObject)Activator.GetObject( typeof (RemoteObject.MyObject),System.Configuration.ConfigurationSettings.AppSettings[ " ServiceURL " ]);

    Console.WriteLine(app.Add( 1 , 2 ));

    Console.ReadLine();

    }

    }

    }

建立配置文件:app.config