3
Answers

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

Ask a question
Kanhialal kk

Kanhialal kk

13y
4.5k
1
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)