客户端:
namespace Danyao
{
   
    public partial class frmWarehouseIn : Form
    {
      //  private DanyaoReader reader = new DanyaoReader("Danyao");
        //-------------------------------
        static object obj = Activator.GetObject(typeof(RFID.DanyaoReader), "http://127.1.1.0/8080/danyaoreader");
        DanyaoReader reader = (DanyaoReader)obj;
}
远程对象:
namespace RFID
{
    public class DanyaoReader:MarshalByRefObject 
    {
        private IReader reader = null;
        public string strWrite = null;
        public string strControl = "";
        private bool bReadWithoutWrite = false;        public WarehouseAppendInfo wareInfo = null;         public string name = null;
        public string location = null;         public  DanyaoReader(string ReaderName)
        {
            reader = new InterfaceReader(ReaderName);
            name = reader.ReaderName;
            location = reader.Location;
        }
}
如何实现 DanyaoReader reader=new DanyaoReader("Danyao");  ?
初次使用Remoting编程,不知道是否叙述清楚,在线等答案。