Accessing Azure Service Bus Queue from Azure Website -


i can't access azure service bus queue azure website once deployed cloud. while running on localhost, if works fine, can send message queue, if deploy application, on remote server getting exception while creating queueclient:

"the socket connection aborted because asynchronous send socket did not complete within allotted timeout of 00:00:59.4820817. time allotted operation may have been portion of longer timeout."

i using queueclient.createfromconnectionstring(connectionstring) method. debugger shows fine connectionstring variable.

the connection string is:

endpoint=sb://[removed].servicebus.windows.net/;sharedaccesskeyname=rootmanagesharedaccesskey;sharedaccesskey=[removed]

i have tried set "copy local = true" references without success. using windowsazure.servicebus 2.6.4 nuget.

also, exception not raised on namespacemanager.queueexists(name) if queue exists, exception raised on namespacemanager.createqueue(name) if not exist.

anyone has experienced such problem? in advance tips.

update 1:

for clarification, providing block of code , trace output:

system.diagnostics.trace.traceerror("begin"); var queueclient = queueclient.createfromconnectionstring(this.configuration.servicebusconnectionstring, "points"); system.diagnostics.trace.traceerror(this.configuration.servicebusconnectionstring); queueclient.send(new brokeredmessage());    system.diagnostics.trace.traceerror("end"); 

produces output:

  • connecting application logs ...

  • 2015-03-29t01:40:29 welcome, connected log-streaming service.

  • application: 2015-03-29t01:40:41 pid[1952] error begin

  • application: 2015-03-29t01:40:44 pid[1952] error endpoint=sb://[removed-before-posting].servicebus.windows.net/;sharedaccesskeyname=rootmanagesharedaccesskey;sharedaccesskey=[removed-before-posting]

  • application: 2015-03-29t01:41:48 pid[1952] error socket connection aborted because asynchronous send socket did not complete within allotted timeout of 00:00:59.5586593. time allotted operation may have been portion of longer timeout.

update 2

there no connectivity issues while using azure storage api or sql server.

update 3

both, website instance , service bus namespace created in north europe region.

i have not been able connection strings (that available in azure ui) queues work either, found when use powershell command

get-azuresbnamespace -name $servicebusnamespace 

to connection string, comes different connection string works. use following code provision service bus queues: createservicebusqueue.ps1


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -