Socket exception: System.Net.Sockets.SocketException - CLR_E_FAIL (5)

Hi

I am new to Gadgeteer world. I am trying to connect Gadgeteer(spider) to Azure Event hub using connectthedots sample. It uses AMQP protocol.
I am getting following error while attempting to connect Event Hub on azure. I have set up static IP also I tried by updating SSL seed. But still the error persist

The thread ‘’ (0x3) has exited with code 0 (0x0).
#### Exception System.Net.Sockets.SocketException - CLR_E_FAIL (5) ####
#### Message:
#### Microsoft.SPOT.Net.SocketNative::getaddrinfo [IP: 0000] ####
#### System.Net.Dns::GetHostEntry [IP: 0008] ####
#### Amqp.TcpTransport::Connect [IP: 0007] ####
#### Amqp.Connection::Connect [IP: 0010] ####
#### Amqp.Connection::.ctor [IP: 0016] ####
#### Amqp.Connection::.ctor [IP: 0008] ####
#### KnockAzure.Program::InitAMQPconnection [IP: 001a] ####
#### KnockAzure.Program::NetworkChange_NetworkAddressChanged [IP: 0031] ####
#### Microsoft.SPOT.Net.NetworkInformation.NetworkAddressChangedEventHandler::Invoke [IP: 8018e9f5] ####
#### Microsoft.SPOT.Net.NetworkInformation.NetworkChange::OnNetworkChangeCallback [IP: 0040] ####
#### Microsoft.SPOT.Net.NetworkInformation.NetworkChange+NetworkChangeListener::OnEvent [IP: 000d] ####
#### Microsoft.SPOT.EventSink::EventDispatchCallback [IP: 0014] ####
#### SocketException ErrorCode = 10060
#### SocketException ErrorCode = 10060
A first chance exception of type ‘System.Net.Sockets.SocketException’ occurred in Microsoft.SPOT.Net.dll
#### SocketException ErrorCode = 10060
An unhandled exception of type ‘System.Net.Sockets.SocketException’ occurred in Microsoft.SPOT.Net.dll