警告 1 “System.Runtime.Remoting.Channels.ChannelServices.RegisterChannel(System.Runtime.Remoting.Channels.IChannel)”已过时:“Use System.Runtime.Remoting.ChannelServices.RegisterChannel(IChannel chnl, bool ensureSecurity) instead.” E:\。。\MDIParent1.cs 133 13 控制台使用ChannelServices.RegisterChannel(tcp);给的提示。说什么过期,怎么会是?好像不影响运行。

解决方案 »

  1.   

    将你原来调用的方法
    System.Runtime.Remoting.Channels.ChannelServices.RegisterChannel(System.Runtime.Remoting.Channels.IChannel)改成这个方法调用:
    System.Runtime.Remoting.Channels.ChannelServices.RegisterChannel(System.Runtime.Remoting.Channels.IChannel, bool ensureSecurity)
    不是什么注册不注册的。只是这个方法再在实用了。