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 Jun 1, 2011, 3:03 AM
Change the above line to
ChannelServices.RegisterChannel((IChannel)this.channel2, true / false);
Kanhialal kkPosted Jun 1, 2011, 5:32 AM
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...
??
Suthish NairPosted Jun 1, 2011, 4:01 AM