I found the solutions. Thanks now. it is working fine now.
EndpointAddress address = new EndpointAddress(new Uri("net.tcp://SC-Server-APP01:50010/Common/Definition"), EndpointIdentity.CreateUpnIdentity("svcrange@dev"));
NetTcpBinding netTcpBinding = new NetTcpBinding();
netTcpBinding.MaxReceivedMessageSize = int.MaxValue;
netTcpBinding.TransactionFlow = true;
netTcpBinding.TransactionProtocol = TransactionProtocol.OleTransactions;
netTcpBinding.ReaderQuotas.MaxDepth = int.MaxValue;
netTcpBinding.ReaderQuotas.MaxStringContentLength = int.MaxValue;
netTcpBinding.ReaderQuotas.MaxArrayLength = int.MaxValue;
ChannelFactory<IDefinition> factory = new ChannelFactory<IDefinition>(netTcpBinding, address);
factory.Endpoint.Behaviors.Add(new AttachExtendedHeadersBehavior()
{
Domain = "range",
Culture = "",
User = ""
});
IDefinition IDefinition1 = factory.CreateChannel();
var defs = IDefinition1.GetAllDefinitions("someuser");