Skip to content

Commit 2c5c9a2

Browse files
author
Ashish Chhabria
committed
adding socket exception
1 parent c96e9e3 commit 2c5c9a2

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

articles/service-bus-messaging/service-bus-messaging-exceptions.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,35 @@ Since the lock on the session has expired, it would go back on the Queue (or Sub
139139

140140
### Cause
141141

142+
A **SocketException** is thrown in the below cases -
143+
* When a connection attempt fails because the host did not properly respond after a specified time (TCP error code 10060).
144+
* An established connection failed because connected host has failed to respond.
145+
* There was an error processing the message or the timeout is exceeded by the remote host.
146+
* Underlying network resource issue.
147+
142148
### Resolution
143149

150+
The **SocketException** errors indicate that the VM hosting the applications is unable to convert the name `<mynamespace>.servicebus.windows.net` to the corresponding IP address.
151+
152+
Check to see if below command succeeds in mapping to an IP address.
153+
154+
```Powershell
155+
PS C:\> nslookup <mynamespace>.servicebus.windows.net
156+
```
157+
158+
which should provide an output as below
159+
160+
```bash
161+
Name: <cloudappinstance>.cloudapp.net
162+
Address: XX.XX.XXX.240
163+
Aliases: <mynamespace>.servicebus.windows.net
164+
```
165+
166+
If the above name **does not resolve** to an IP and the namespace alias, check which the network administrator to investigate further. Name resolution is done through a DNS server typically a resource in the customer network. If the DNS resolution is done by Azure DNS please contact Azure support.
167+
168+
If name resolution **works as expected**, check if connections to Azure Service Bus is allowed [here](service-bus-troubleshooting-guide.md#connectivity-certificate-or-timeout-issues)
169+
170+
144171
## MessagingException
145172

146173
### Cause

0 commit comments

Comments
 (0)