We have some strange things happening with a new installation of MSMQ on a Windows Server 2012 R2 Cluster:

  • the clients reach the server without problems
  • the server tries to send a message to the client and gets the error message "Failed to connect to winsock socket"
  • the server is able to ping the client and vice versa
  • restarting the MSMQ-Client on the clients (Windows 7 domain-members, same domain as the server) seems to fix the problem teporarily
  • it only affects a few clients, and not always the same. We might have identified one of the reasons being that the network is not fully operational at the time the MQ-client starts. Starting the client without network connection always results in the error.
  • the strangest thing: it only affect communication to the new 2012-server. The same clients have no problems communicating with MSMQ on 2008-servers, even when they can't communicate with the 2012 MQ at the same time.

One articel we found described opening the firewallports for RPC-EPMAP, which we did, unfortunatelly without helping. The log of the firewall shows no dropped packets.

At the moment we are clueless, especially since the Clients just work flawlessly with the Windows 2008 MSMQ-Servers.

  • The error "Failed to connect to winsock socket" doesn't sound right. Are you sending from server TO a queue on the client or is the client receiving FROM a queue on the server? – John Breakwell Jan 21 '16 at 23:22

The error message is displayed in the MSMQ managementconsole (Services and Applications/Message Queuing). There are no eventlogs generated on the server for errors. The problem is with the communication fom the server back to the client. The client reaches the server, but the answer doesn't get to the client. It can be reproduced by starting the client without network connection and establishing the connection after the login. Restarting the MSMQ-client solves this. Communication with the 2008 MSMQ-server isn't affected at all, works even while not recieving from the 2012 MSMQ.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.