Quantcast
Channel: Service Bus forum
Viewing all articles
Browse latest Browse all 1916

.NET On-Premises/Cloud Hybrid Application Using Service Bus Relay not working

$
0
0

Hello,

I'm trying to create a POC to use the Azure Service Bus relay to share data between an Azure application and a web service hosted elsewhere. I am referring to this link and followed the exact steps as mentioned the web tutorial.

I have Trial version of Azure account and Using VS 2013 installed with Azure .NET SDK for VS 2013.

I could able to run the WCF service and deploy the web application to Azure. When I run my web application I'm ended up with TimeoutException as shown below:

[TimeoutException] : The request has timed out after 00:00:00 milliseconds. The successful completion of the request cannot be determined. Additional queries should be made to determine whether or not the operation has succeeded.

I tried setting "OperationTimeout" by casting my channel to IContextChannel as shown below, but still the exception persist.

if (channelFactory.State == CommunicationState.Opened)
{
      IContextChannel contextChannel = channel as IContextChannel;
      contextChannel.OperationTimeout = new TimeSpan(0, 10, 0);
}

Tried setting openTimeout, closeTimeout, sendTimeOut and recieveTimeout in both client and server config as shown below :

<bindings><netTcpBinding><binding name="netTcpRelayBinding" openTimeout="00:10:00"
         closeTimeout="00:20:00" receiveTimeout="00:10:00" sendTimeout="00:10:00"></binding></netTcpBinding></bindings>

Though I'm getting TimeOutException.

I'm not sure about the root cause of the problem and not getting any solution online.

Please suggest me on this.

Thanks in advance.


Viewing all articles
Browse latest Browse all 1916

Trending Articles