azureservicebus

Azure Service Bus MessageReceiver Receive() web sockets error

久未见 提交于 2019-12-12 03:34:16
问题 I am working with a c# program within my network and am able to post messages to an Azure Service Bus queue. When receiving them, I get an exception on MessageReceiver.Receive() . The code and error is below; MessagingFactory factory = MessagingFactory.CreateFromConnectionString(QueueConnectionString); //Receiving a message MessageReceiver testQueueReceiver = factory.CreateMessageReceiver(QueueName); using (BrokeredMessage retrievedMessage = testQueueReceiver.Receive(new TimeSpan(0, 0, 20)))

Azure Service Bus Queue sending a message in NodeJs to .NET client

大兔子大兔子 提交于 2019-12-12 03:25:48
问题 I am sending a message from a C# worker to the Queue, then I am getting it on another C# worker and call string body = message.GetBody<string>(); This works and I later de-serialize the string/JSON message. Now I am trying to send the same message from NodeJS in form of a JSON message. When I try to receive it and string body = message.GetBody<string>(); call this I get an exception saying the input is in incorrect format. My message object on NodeJS looks like this { body: JSON.stringify

how to peek and delete a message from deadletter in azureservicebus

左心房为你撑大大i 提交于 2019-12-12 02:56:33
问题 I have created an azure service bus topic application which peek all messages in deadletter . Some specific messages(with particular messageid) which i peeked need to be removed from the deadletter queue. Please provide help for implementing this. 回答1: By calling complete on the reference to the brokered message you receive from the dead letter queue you can remove it from the dead letter queue. https://msdn.microsoft.com/library/azure/microsoft.servicebus.messaging.brokeredmessage.complete

Azure Service Bus WCF service starting but not receiving messages

自闭症网瘾萝莉.ら 提交于 2019-12-12 02:17:20
问题 I have just written my first WCF service to attach to Azure Service Bus and handle incoming messages. The web.config looks like: <services> <service name="Acme.Services.ClientManagementService.ClientManagementService" behaviorConfiguration="MyServiceTypeBehaviors"> <endpoint name="ClientManagementService" address="sb://acme.servicebus.windows.net/ClientManagement.GetAllClients" binding="netMessagingBinding" contract="Acme.Services.ClientManagementService.IClientManagementService"

Relay binding not working for Window Server Service Bus 1.1

ⅰ亾dé卋堺 提交于 2019-12-12 01:05:37
问题 I have installed Service Bus for Windows Server 1.1 (Not Azure Service Bus) that is having a default namespace. I have downloded the sample from http://code.msdn.microsoft.com/windowsazure/Relayed-Messaging-Bindings-ca039161 and change the following code to generate the token. var machineName = Dns.GetHostEntry(string.Empty).HostName; var networkCredential = new NetworkCredential(WindowsUsername, WindowsPassword, WindowsDomain); string serviceNamespace = "ServiceBusDefaultNamespace"; // The

Logic app and service bus queue not scaling logic app run-instances properly

二次信任 提交于 2019-12-11 19:56:46
问题 Hi i have a performance issue regarding Logic Apps and a Azure Service bus queue. So i have a logic app looking like this: (NOTE: The delay is there to simulate a bunch of connectors/actions that take about 2 seconds to run, also i'm using lock tokens and also session IDs to complete messages and Close sessions) Its polling the service bus every second for high throughput with a peak-lock because my service bus queue uses sessions to enable FIFO Ordering in my flow. So what i'm doing is,

Azure Function - ServiceBusTrigger - Exception Binding Message

两盒软妹~` 提交于 2019-12-11 19:27:43
问题 I have an Azure Function that is subscribed to an Azure Service Bus Queue - however before the function is able to trigger an exception is thrown by the run time before it reaches any of my code. Exception while executing function: <functionName>. Microsoft.Azure.WebJobs.Host: Exception binding parameter 'message'. System.Private.CoreLib: Unable to translate bytes [9A] at index 60 from specified code page to Unicode. In this instance I am not in control of the incoming message (it's actually

How can I use MSMQ in Azure Service Fabric

吃可爱长大的小学妹 提交于 2019-12-11 18:25:10
问题 I have implemented a Proof of Concept in Azure Service fabric that uses Azure Service Bus as a message queue. I'm using nServiceBus within the application to send and respond to messages which makes it very easy to change from one queuing technology to another. I'd like to know if it's possible to use MSMQ instead of Service Bus in Azure Service Fabric as the nodes that are created are just windows 2016 servers and I'm not sure I need something like Service Bus. It's a question I want to

New-AzureSBAuthorizationRule error when creating authorization for a Service Bus Queue

孤人 提交于 2019-12-11 16:17:40
问题 I use New-AzureSBAuthorizationRule to create a new Shared Access Policy for an Azure Service Bus Queue. See command below... New-AzureSBAuthorizationRule -EntityName abcdef -EntityType Queue -Permission Listen -Name "abcdef_reader" -Namespace abcdefnamespace But every time I run this I get the error below: New-AzureSBAuthorizationRule : Object reference not set to an instance of an object. At line:1 char:1 + New-AzureSBAuthorizationRule -EntityName abcdef -EntityType Queue -Permission ... + ~

Correct way to publish and subscribe to an explicit service bus topic with MassTransit?

隐身守侯 提交于 2019-12-11 15:33:05
问题 In scenarios where you want to share a Azure Service Bus namespace (to save cost etc), it's helpful to be able to explicitly set queue and topic names rather than rely on MassTransit conventions. Whilst this is straightforward with queues, we've run into difficulty with topics. The MassTransit documentation is sparse in this area. It's currently recommending to use a ReceiveEndpoint which appears to forward messages from a topic subscription onto a queue and then subscribe to that queue. We