Kanhialal kk

Kanhialal kk

  • NA
  • 234
  • 338.3k

System.Runtime.Remoting.Channels.ChannelServices.RegisterChannel(System.Runtime.Remoting.Channels.IChannel)'

Jun 1 2011 1:21 AM
Hi...

Here is my prob"

System.Runtime.Remoting.Channels.ChannelServices.RegisterChannel(System.Runtime.Remoting.Channels.IChannel)' is obsolete: Use System.Runtime.Remoting.ChannelServices.RegisterChannel(IChannel chnl, bool ensureSecurity) instead."

I am working on windows services in c#.. I have created a services application and I have used a class like bellow...

public class TCP
  {
  private TcpServerChannel channel2 = new TcpServerChannel(0x1F93);

  public TCP()
  {
  ChannelServices.RegisterChannel((IChannel)this.channel2);
  RemotingConfiguration.RegisterWellKnownServiceType(typeof(ZEESHSOFT), "zeesh", (WellKnownObjectMode)WellKnownObjectMode.SingleCall);

  }
  }

on bold line showing warning while application is success and warning error is bellow..

Warning  1

'System.Runtime.Remoting.Channels.ChannelServices.RegisterChannel(System.Runtime.Remoting.Channels.IChannel)' is obsolete: 'Use System.Runtime.Remoting.ChannelServices.RegisterChannel(IChannel chnl, bool ensureSecurity) instead.'

please help me....


Answers (3)