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....
Loading

Posted May 31, 2011, 11:03 PM EDT
Change the above line to
ChannelServices.RegisterChannel((IChannel)this.channel2, true / false);
Suthish NairRank #92 · 22.8K reputationPosted Jun 1, 2011, 12:01 AM EDT
Kanhialal kkRank #8,477 · 221 reputationPosted Jun 1, 2011, 1:32 AM EDT
Exception has been thrown by the target of an invocation
when I perform save event where is that service called than above exception is showing...
??