让client调用Monthlist的内容显示在ListBox中。
运行时点client的接收按键后报异常请高手指教!
namespace MonthListClient
{
    public partial class FormMonthListClient : Form
    {
        public FormMonthListClient()
        {
            InitializeComponent();
            HttpChannel c = new HttpChannel();
            ChannelServices.RegisterChannel(c);
        }        private void receive_Click(object sender, EventArgs e)
        {
            MonthServer.MonthList monthlist = (MonthServer.MonthList)Activator.GetObject(typeof(MonthServer.MonthList), "http://localhost:8081/Monthlist");
            this.Monthlist.DataSource = monthlist.getCountryList();
        }        private void FormMonthListClient_Load(object sender, EventArgs e)
        {        }
    }
}
namespace MonthListHost
{
    class MonthListHost
    {
        static void Main(string[] args)
        {
            HttpChannel myChannel = new HttpChannel(8080);
            ChannelServices.RegisterChannel(myChannel);            RemotingConfiguration.RegisterWellKnownClientType(typeof(MonthServer.MonthList), "MonthList");            System.Console.WriteLine("press enter to exit");
            System.Console.ReadLine();
        }
    }
}namespace MonthAccess
{
        public class MonthList : MarshalByRefObject
   { 
            private string[] month ={ "1", "2", "3", "4", "5", "6" };
        public MonthList()
        { 
        }
        public String[] getCountryList()
        {
            return month;
       }
    }
}