Ik vond de oplossingen. Dank nu. het werkt nu boete.
Het adres van EndpointAddress = nieuwe EndpointAddress (nieuwe Uri („net.tcp: //SC-server-APP01: 50010/Common/Definition“), EndpointIdentity.CreateUpnIdentity („svcrange@dev“));
NetTcpBinding die = nieuwe NetTcpBinding netTcpBinding ();
netTcpBinding.MaxReceivedMessageSize = int.MaxValue;
netTcpBinding.TransactionFlow = waar;
netTcpBinding.TransactionProtocol = TransactionProtocol.OleTransactions;
netTcpBinding.ReaderQuotas.MaxDepth = int.MaxValue;
netTcpBinding.ReaderQuotas.MaxStringContentLength = int.MaxValue;
netTcpBinding.ReaderQuotas.MaxArrayLength = int.MaxValue;
De fabriek van ChannelFactory = nieuwe ChannelFactory (het netTcpBinding, adres);
fabriek. Endpoint.Behaviors.Add (nieuwe AttachExtendedHeadersBehavior ()
{
Domein = „waaier“,
Cultuur = "",
Gebruiker = ""
});
IDefinition IDefinition1 = factory.CreateChannel ();
var defs = IDefinition1.GetAllDefinitions („someuser“);