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.

BizTalk360
BizTalk Server

Over 500+ customers across
30+ countries depend on BizTalk360

Learn More
Serverless360
Azure

Manage and monitor serverless
components effortlessly

Learn More
Atomicscope
Business Users

Monitor your Business Activity in iPaaS
or Hybrid integration solutions

Learn More

Back to Top