new Connect() hangs

Jun 27, 2014 at 10:21 PM
When trying to establish the connection following code hangs

Address address = new Address("amqps://owner:***amqps://owner:***@***.servicebus.windows.net"); m_Connection = new Connection(address); // THIS HANGS

This is the trace:
SEND AMQP 3 1 0 0
SEND sasl-init(mechanism:PLAIN,initial-response:***,hostname:.servicebus.windows.net)
RECV AMQP 3 1 0 0
RECV sasl-mechanisms(sasl-server-mechanisms:System.Object[])
RECV sasl-outcome(code:0,additional-data:57656C636F6D6521)

This is the place in code which blocks:
void PumpThread()
        {
            try
            {
HERE BLOCKS
 ProtocolHeader header = Reader.ReadHeader(this.connection.transport); 

                this.connection.OnHeader(header);
            }
. . .
Coordinator
Jun 27, 2014 at 10:24 PM
Are you by any chance using the .NET MF Device Emulator? If so, there's a known bug in the emulator's network library that results in this hang. It does not occur on an actual .NET MF device.
Marked as answer by ddobric on 6/27/2014 at 2:42 PM
Jun 27, 2014 at 10:26 PM
Edited Jun 27, 2014 at 10:28 PM
This was best support ever. It took a minute :) Will check on device