Azure BizTalk Services – Unable to reach <servicebusnamespace.servicebus.windows.net via TCP (9351, 9352) or HTTP (80, 443)

Posted: October 3, 2013  |  Categories: Azure BizTalk Uncategorized

I have been trying to complete the “Using BizTalk Service Bridges to Send and Receive Messages from Service Bus Relay Service” tutorial and I kept on getting this error in Step1: Build and Deploy the Relay services. Whenever i try to run RelayReceiverServiceA.exe 2 <ServiceBusNamespace> owner <Issuerkey> /RelayReceiverServiceA from the command line the relay does not start and i get

Unhandled Exception: System.ServiceModel.CommunicationException: Unable to reach markbriservicebus.servicebus.windows.net via TCP (9351, 9352) or HTTP (80, 443)

The solution is surprisingly simple. I had downloaded the source code for the RelayReceiverService from Nitin Mehotra’s MSDN link but it did not contain an app.config.

image

I added this app.config, rebuilt my solution and ran the command line again. This time the relay started without error.

<?xml version=”1.0″ encoding=”utf-8″ ?>
<configuration>
<startup>
<supportedRuntime version=”v4.0″ sku=”.NETFramework,Version=v4.5″/>
</startup>
<system.net>
<defaultProxy useDefaultCredentials=”true”>
<proxy bypassonlocal=”True” usesystemdefault=”True”/>
</defaultProxy>
</system.net>
</configuration>

In summary if you get the above error try adding an app.config to your solution to set some of the the proxy options.

turbo360

Back to Top