1

I'm working on this problem quiet a long time... next step would be to reinstall all my PCs and/or reprogram everything...

The program(C#) I'm using is an old one (the guy who wrote this isn't available anymore :( )

Everything works fine on another testenvironment, but not on mine... we were not able to figure out where the differences are.

When I start my program and try to connect to my client I get an error:

The server has rejected the client credentials.

What I did by now:

  • Tried it with the preconfigured Administrator User.
  • I created the same user on both PCs, which are in the same Workgroup User: Test PW: 123456 WorkGroup: TESTLAB
  • I added in the Local Security Settings -> Local Policies -> User Rights Assignment -> Access this computer from the network the Users: Everyone, Authenticated User, Administrator (on both PCs)
  • Windows Firewall is disabled, both PCs can ping each other and can connect via RDP

I also see some network packages flying arround while trying to connect (with Wireshark)

    private static System.ServiceModel.Channels.Binding getLargeNetTCPTransferBinding()
    {
        NetTcpBinding binding = new NetTcpBinding(/*SecurityMode.Message, true*/);
        binding.MaxReceivedMessageSize = 2147483647;
        binding.TransferMode = TransferMode.Buffered;
        binding.MaxBufferSize = 2147483647;
        binding.ReceiveTimeout = new TimeSpan(00, 2, 0);
        binding.SendTimeout = new TimeSpan(00, 2, 0);
        binding.Security.Mode = SecurityMode.Transport;
        binding.Security.Transport.ClientCredentialType = TcpClientCredentialType.Windows;
        binding.Security.Transport.ProtectionLevel = System.Net.Security.ProtectionLevel.EncryptAndSign;
        //binding.ReliableSession.Enabled = true;
        binding.ReliableSession.InactivityTimeout = new TimeSpan(23, 59, 59);
        binding.ReaderQuotas.MaxStringContentLength = 2147483647;
        //binding.TransactionFlow = true;
        return binding;
    }

as I said, the same code works in another testenvironment :/ also the communictaion works with "localhost", so at least the code "should" work also on my workstations. Both PCs are running Windows XP SP3 (the same as on the second environment where everything works)

Hopefully someone can help me :/

4

0 回答 0