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

How to mentioned PartitionKey == ConsumerGroup binding in EventHub, Azure.

$
0
0

Hi there,

I want to integrate my application through Event Hub with multiple type of devices like Mobile app, different type of Embedded system etc. All different type of senders sending data in their specific format and they need their specific handler as well. Like shown below

Mobile APP (Partition key “MobileAPP”) = Consumer Group 1

Embedded System 1 (Partition key “Embedded1”) =  Consumer Group 2

Embedded System 2 (Partition key “Embedded2”) =  Consumer Group 2

 

So can you please tell me how I should specify above binding in Event Hub implementation so that each type of message should handle by their particular consumer group?

Normally I see on Receiver side only default consumer group name mentioned. But I can duringEventProcessorHost implementation we can create new Consumergroup with methodnamespaceManager.CreateConsumerGroupIfNotExists(ehd.Path, consumerGroupName). But not able to understand how I make sure that all messages that associate to particular partition key will be handling by their associate consumer group. Where should I mentioned their PartitionKey == ConsumerGroup binding.

Ankush


The request has timed out after 00:00:00 milliseconds.

$
0
0

Hello,

I am having weird exception when I try to send a message to a topic and there's nothing on the internet I could "google with Bing" about it.

Here's the error message

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.

There are two things weird about it:

  1. The timeout period is 0 miliseconds
  2. The number of miliseconds is given in format 00:00:00

Here's the whole stack

Timestamp: 5.5.2014. 11:15:58
 Message: HandlingInstanceID: b9fcc3c8-c167-47ab-8473-ae45bfb62311
An exception of type 'System.TimeoutException' occurred and was caught.
-----------------------------------------------------------------------
05/05/2014 11:15:58
Type : System.TimeoutException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : 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.
Source : Microsoft.ServiceBus
Help link :
Data : System.Collections.ListDictionaryInternal
TargetSite : TAsyncResult End[TAsyncResult](System.IAsyncResult)
HResult : -2146233083
Stack Trace :
Server stack trace:

Exception rethrown at [0]:
   at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at Microsoft.ServiceBus.TokenProviderHelper.EndGetAccessTokenCore(IAsyncResult result, String& expiresIn)
   at Microsoft.ServiceBus.TokenProviderHelper.EndGetAccessTokenByAssertion(IAsyncResult result)
   at Microsoft.ServiceBus.SharedSecretTokenProvider.OnEndGetToken(IAsyncResult result, DateTime& cacheUntil)
   at Microsoft.ServiceBus.TokenProvider.GetTokenAsyncResult.OnEndTokenProviderCallback(IAsyncResult result, DateTime& cacheUntil)
   at Microsoft.ServiceBus.TokenProvider.GetTokenAsyncResultBase`1.OnCompletion(IAsyncResult result)
   at Microsoft.ServiceBus.TokenProvider.GetTokenAsyncResultBase`1.<GetAsyncSteps>b__f(T thisPtr, IAsyncResult r)
   at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.EnumerateSteps(CurrentThreadType state)
Exception rethrown at [1]:
   at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at Microsoft.ServiceBus.TokenProviderUtility.GetMessagingToken(TokenProvider tokenProvider, Uri baseAddress, String appliesTo, String action, Boolean bypassCache, TimeSpan timeout)
   at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageCreator.GetAuthorizationToken(String appliesTo, String action)
   at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageCreator.GetAuthorizationHeader(String action)
   at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageCreator.CreateWcfMessageInternal(String action, Object body, Boolean includeToken, String parentLinkId, RetryPolicy policy, TrackingContext trackingContext, RequestInfo requestInfo)
   at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageCreator.CreateWcfMessage(String action, Object body, String parentLinkId, RetryPolicy policy, TrackingContext trackingContext, RequestInfo requestInfo)
   at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageSender.SendCommandAsyncResult.CreateWcfMessage()
   at Microsoft.ServiceBus.Messaging.Sbmp.SbmpTransactionalAsyncResult`1.<GetAsyncSteps>d__40.MoveNext()
   at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.EnumerateSteps(CurrentThreadType state)
   at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.Start()
Exception rethrown at [2]:
   at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageSender.EndSendCommand(IAsyncResult result)
   at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageSender.<.ctor>b__1(IAsyncResult result, Boolean forceCleanUp)
   at Microsoft.ServiceBus.Messaging.BatchManager`1.PerformFlushAsyncResult.OnSingleOperationCompleted(IAsyncResult result)
Exception rethrown at [3]:
   at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at Microsoft.ServiceBus.Messaging.BatchManager`1.BatchedObjectsAsyncResult.End(IAsyncResult result)
   at Microsoft.ServiceBus.Messaging.BatchManager`1.EndBatchedOperation(IAsyncResult result)
   at Microsoft.ServiceBus.Messaging.BatchManagerAsyncResult`1.OnBatchedCallback(IAsyncResult result)
   at Microsoft.ServiceBus.Common.AsyncResult.AsyncCompletionWrapperCallback(IAsyncResult result)
Exception rethrown at [4]:
   at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageSender.OnEndSend(IAsyncResult result)
   at Microsoft.ServiceBus.Messaging.MessageSender.RetrySenderAsyncResult.<GetAsyncSteps>b__f(RetrySenderAsyncResult thisPtr, IAsyncResult r)
   at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)
Exception rethrown at [5]:
   at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at Microsoft.ServiceBus.Messaging.TopicClient.EndSend(IAsyncResult result)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at Niva.Framework.Azure.Bus.AzureServiceBus.<EnqueueAsync>d__0.MoveNext() in c:\nivatech\papiri\source\framework\Azure\Bus\AzureServiceBus.cs:line 98
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at Niva.Framework.Analytics.BusinessActivityLogRepository.<EnqueueAddAsync>d__29.MoveNext() in c:\nivatech\papiri\source\framework\Core\Analytics\BusinessActivityLogRepository.cs:line 51
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at Niva.Papiri.Web.Controllers.BaseController.<RegisterActivityAsync>d__4.MoveNext() in c:\nivatech\papiri\source\web\site\Controllers\BaseController.cs:line 102
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at Niva.Papiri.Web.Controllers.HomeController.<Index>d__0.MoveNext() in c:\nivatech\papiri\source\web\site\Controllers\HomeController.cs:line 35
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Mvc.Async.TaskAsyncActionDescriptor.EndExecute(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<BeginInvokeAsynchronousActionMethod>b__36(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass48.<InvokeActionMethodFilterAsynchronouslyRecursive>b__41()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass33.<BeginInvokeActionMethodWithFilters>b__32(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<>c__DisplayClass2b.<BeginInvokeAction>b__1c()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult)
Additional Info:
TimeStamp : 5.5.2014. 11:15:58
FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
AppDomainName : /LM/W3SVC/2/ROOT-1-130437489467023302

What is the future of Windows Service Bus

$
0
0

Now that AppFabric support is being stopped, what is the future of the on-premises Windows Service Bus? Is there any plan to continue developing or maintain it?

Future of on premise version of service bus

$
0
0

Hello,

Does anyone have any insight on whether the on premise version of the service bus will be supported in the foreseeable future? It seems that it hasn't been updated since 2013, even though a yearly update was promised. This gives me the impression this product will overcome the same fate as other on premise products such as App Fabric, i.e. will be discontinued. Would it be smart to use this product for new development? Is there any road map?


Azure EventHub Connector

$
0
0
Is there the EventHub Connector in App Services?

Leonid Ganeline [BizTalk MVP]

Event Hubs EventProcessingHost and partitioning over worker roles

$
0
0

Hi,

I have a question after reading the programming guide here:

https://msdn.microsoft.com/en-us/library/azure/dn789972.aspx

My understanding is that if I'm using multiple worker roles on the same event hub, the EventProcessorHost guarantees that a single machine is processing a single partition at any given time. If a checkpoint is made, then the partition might be moved to be processed on another machine, but in-between checkpoints, all the work for a particular node is done on the same machine.

Is my understanding correct?

Thanks,

Andy 


Billing for Event Hubs

$
0
0

I had always thought that the cost of an Event Hub was associated to each individual event hub. Looking at the costs of scaling however, it am starting to think that the billing of event hubs is more about the number of throughput units against the service bus namespace. Is the latter correct?

For example, if I have two event hubs in a namespace that process relatively low numbers of records (so no additional usage/storage costs), am I paying ~$23/mth or ~$46/mth?

Cheers,

Rory

How to recover brokered messages that have 0 subscription

$
0
0


When brokered message send to the topic by setting the filter properties, those message routed to correct subscription client based on the filter rule. When there are  messages in the system that will not pass to any filter subscription how to recover those messages form the topic. is there is any way to auto forward these type of messages to another topic ?

Read message from Event Hub based on time stamp

$
0
0

Can you please share some code snippet to read message from Event Hub.

For example:

if we pass Data and Time stamp as input like (5/15/2015 1.00 pm), then our console app should parse and read only those messages from even hub which were received to Even Hub after (5/15/2015 1.00 pm)

Host REST service on Azure with Service Bus

$
0
0

Hello,

I am new to Azure world and I am planning to move all of my legacy web services to host on Azure. I did some POC on Azure Service Bus and I want to host REST services on Azure behind Azure Service Bus. So here is scenario: My web app (legacy) prepares a request and sends it to Azure Service Bus. On receiving message on service bus I want to execute web service, hosted on Azure and send back response to service bus and eventually back to web app. Here are my question:

1. Above kind of architecture even possible?

2. I want to keep Service Bus implementation separate from web services. So I can deploy new/updated web services anytime without disturbing service bus. Is this possible?

Any links, articles, examples to achieve this would be helpful.

Thanks,

Mayank.


Issue: EventHub - Single ConsumerGroup read same data in same partition mutiple times

$
0
0

Hi There,

I create one worker role that deploy as EventHub receiver and using one custom ConsumerGroup.

I am sending two following message to Event hub. During sending message I did not mention in partition key.

ehnanme: XXXXXX
Sending messages to Event Hub conn2hub
Test Data - Counter0 - Time 18-May-2015 09:47:35
Test Data - Counter1 - Time 18-May-2015 09:47:41
Press enter key to stop worker.


But on receiver side, I have only one Consumer Group. But as per Worker Role logs I can see my receiver reading same data in same partition multiple times as you can see below.

Microsoft.WindowsAzure.ServiceRuntime Verbose: 500 : Role instance status check starting
Microsoft.WindowsAzure.ServiceRuntime Verbose: 502 : Role instance status check succeeded: Ready
WaWorkerHost.exe Information: 0 : EventMessageProcessor OpenAsync.  Partition: '14', Offset: '1728'
WaWorkerHost.exe Information: 0 : EventMessageProcessor OpenAsync.  Partition: '15', Offset: '1728'
WaWorkerHost.exe Information: 0 : EventMessageProcessor OpenAsync.  Partition: '9', Offset: '432'
WaWorkerHost.exe Information: 0 : EventMessageProcessor OpenAsync.  Partition: '10', Offset: '288'
WaWorkerHost.exe Information: 0 : EventMessageProcessor OpenAsync.  Partition: '12', Offset: '864'
WaWorkerHost.exe Information: 0 : EventMessageProcessor OpenAsync.  Partition: '3', Offset: '1152'
WaWorkerHost.exe Information: 0 : Message received.  Partition: '0', Offset: 1008, Data: 'Test Data - Counter1 - Time 18-May-2015 09:47:41'
WaWorkerHost.exe Information: 0 : Message received.  Partition: '1', Offset: 720, Data: 'Test Data - Counter0 - Time 18-May-2015 09:47:35'
WaWorkerHost.exe Information: 0 : EventMessageProcessor OpenAsync.  Partition: '4', Offset: '1152'
WaWorkerHost.exe Information: 0 : EventMessageProcessor OpenAsync.  Partition: '2', Offset: '720'
WaWorkerHost.exe Information: 0 : EventMessageProcessor OpenAsync.  Partition: '8', Offset: '1152'
WaWorkerHost.exe Information: 0 : EventMessageProcessor OpenAsync.  Partition: '6', Offset: '288'
WaWorkerHost.exe Information: 0 : EventMessageProcessor OpenAsync.  Partition: '13', Offset: '1008'
WaWorkerHost.exe Information: 0 : EventMessageProcessor OpenAsync.  Partition: '0', Offset: '1008'
WaWorkerHost.exe Information: 0 : EventMessageProcessor OpenAsync.  Partition: '1', Offset: '720'
WaWorkerHost.exe Information: 0 : EventMessageProcessor OpenAsync.  Partition: '7', Offset: '864'
WaWorkerHost.exe Information: 0 : EventMessageProcessor OpenAsync.  Partition: '11', Offset: '1440'
WaWorkerHost.exe Information: 0 : EventMessageProcessor OpenAsync.  Partition: '5', Offset: '432'
WaWorkerHost.exe Information: 0 : Message received.  Partition: '0', Offset: 1008, Data: 'Test Data - Counter1 - Time 18-May-2015 09:47:41'
WaWorkerHost.exe Information: 0 : Message received.  Partition: '1', Offset: 720, Data: 'Test Data - Counter0 - Time 18-May-2015 09:47:35'
WaWorkerHost.exe Information: 0 : Message received.  Partition: '0', Offset: 1008, Data: 'Test Data - Counter1 - Time 18-May-2015 09:47:41'
WaWorkerHost.exe Information: 0 : Message received.  Partition: '1', Offset: 720, Data: 'Test Data - Counter0 - Time 18-May-2015 09:47:35'
WaWorkerHost.exe Information: 0 : Message received.  Partition: '0', Offset: 1008, Data: 'Test Data - Counter1 - Time 18-May-2015 09:47:41'
WaWorkerHost.exe Information: 0 : Message received.  Partition: '1', Offset: 720, Data: 'Test Data - Counter0 - Time 18-May-2015 09:47:35'

WaWorkerHost.exe Information: 0 : Working
Getting "eventHubName" from ServiceRuntime: PASS.
Getting "messageProcessorConsumerGroupName" from ServiceRuntime: PASS.

As per logs, EventHub Receiver read same data from same Partition number 0 four times and Partition number 1 four times. Can you please suggest why it is doing like this because I have to run some rule engine once our system receive data from EventHub. But in this case, same data will be processed multiple time which will be big impact on our system.

How can I resolve this issue, single consumergroup should read data only one time.

Ankush




Error using Azure Service Bus Subscription OnMessageAsync event

$
0
0

We are using Azure Service Bus in our project and while reading messages from service bus topic/subscription. We are using ‘subscriptionClient.OnMessageAsync’ event in conjunction with ‘onMessageOptions.ExceptionReceived’. Let me write down the steps we followed to reproduce the issue we are facing.

  1. Create a service bus namespace with default config in the azure portal
  2. Create a topic inside it with default config in the azure portal
  3. Create a subscription inside it with default config in the azure portal
  4. Create a console app and paste the code added below
  5. Connect the service bus using Service Bus Explorer
  6. Run the console app
  7. Send a few test messages from service bus explorer & watch the console app window
  8. Though the messages are processed successfully every time the control is going inside the ‘ExceptionReceived’ method
class Program {
   static void Main()
   {
        var subscriptionClient =    SubscriptionClient.CreateFromConnectionString( servicebusendpointaddress", "topicname", subscriptionname", ReceiveMode.PeekLock);
        var onMessageOptions = new OnMessageOptions();
        onMessageOptions.ExceptionReceived += OnMessageError;
        subscriptionClient.OnMessageAsync(OnMessageReceived, onMessageOptions);
        Console.ReadKey();
    }

    private static void OnMessageError(object sender, ExceptionReceivedEventArgs e)
    {
        if (e != null && e.Exception != null)
        {
            Console.WriteLine("Hey, there's an error!" + e.Exception.Message + "\r\n\r\n");
        }
    }

    private static async Task OnMessageReceived(BrokeredMessage arg)
    {
        await arg.CompleteAsync();
        Console.WriteLine("Message processing done!");
    }
}

Message processing done!
Hey, there's an error!The lock supplied is invalid. Either the lock expired, or the message has already been removed from the queue. TrackingId:dd011e
d7-1037-4f1e-912b-c0c605eec60a_G1_B13,TimeStamp:5/18/2015 1:55:02 PM


Message processing done!
Hey, there's an error!The lock supplied is invalid. Either the lock expired, or the message has already been removed from the queue. TrackingId:2d3aaf
a4-a6cc-48f3-bd85-63e476daef1b_G1_B13,TimeStamp:5/18/2015 1:55:04 PM

Are we missing something here?

Also one point to mention is that is we enable ‘autocomplete’ and remove the ‘await arg.CompleteAsync();’ then this is not happening.

var onMessageOptions = new OnMessageOptions() { AutoComplete = true};

In both the cases the messages are being processed successfully & removed from the subscription immediately.


Maximum messages an event hub can hold for a period of default duration 24 hours

$
0
0
what is the Maximum messages or Size of data an event hub can hold for a period of default duration 24 hours?

How can i make sure the message is send to Servcie Bus

$
0
0

Hi All

As the  queueclient.Send(message)  no return value

How can i make sure the message is send to Servcie Bus

Thanks

Shared signature to publish events

$
0
0

I'm using shared signatures to Post events with HTTP to the event hub.

For instance I post to

https://commandhub.servicebus.windows.net/rmmdevices/publishers/cdf35a34-f2c8-4562-a3ab-b18d5e6100e3/messages?timeout=60&api-version=2014-05

using

Authorization: SharedAccessSignature sr=sb%3a%2f%2fcommandhub.servicebus.windows.net%2frmmdevices%2fpublishers%2fcdf35a34-f2c8-4562-a3ab-b18d5e6100e3&sig=ZI9S0Fn7XCboEF55jqbhH3bVq%2bKX2pBGzyvOHeC8flI%3d&se=1432203732&skn=***hidden***

Now I found out that changing the Publisher will make the signature invalid (that's great) so the following will not work with the SAME signature

https://commandhub.servicebus.windows.net/rmmdevices/publishers/change-cdf35a34-f2c8-4562-a3ab-b18d5e6100e3/messages?timeout=60&api-version=2014-05

But

https://commandhub.servicebus.windows.net/rmmdevices/publishers/cdf35a34-f2c8-4562-a3ab-b18d5e6100e3-change/messages?timeout=60&api-version=2014-05

workes and this is not so good as it takes away the possibility to block publishers from publishing. (They can just add some data to there name and reuse the still valid signature.)

Is this a BUG or a FEATURE?

Documentation states at (https://msdn.microsoft.com/en-us/library/azure/dn170477.aspx):

A SAS token is valid for all resources under the <resourceURI> used in the string-to-sign.

sb://commandhub.servicebus.windows.net/rmmdevices/publishers/cdf35a34-f2c8-4562-a3ab-b18d5e6100e3

is a substring but not a parent ressource of

sb://commandhub.servicebus.windows.net/rmmdevices/publishers/cdf35a34-f2c8-4562-a3ab-b18d5e6100e3-change


Dan Danneberg


Programatic capacity scaling with Powershell / Microsoft.WindowsAzure.Management.ServiceBus nuget version="0.17.1-preview"

$
0
0

Using the Nuget Library I can create a new Service-Bus-Namespace

sbClient.Namespaces.CreateNamespace("my-own-demo", new ServiceBusNamespaceCreateParameters
{
 Region = region,
 NamespaceType = NamespaceType.Messaging,
 CreateACSNamespace = false
});

Same is true with powershell:

New-AzureSBNamespace [-Name] <string> [[-Location] <string>] [[-CreateACSNamespace] <bool>] [-NamespaceType] <NamespaceType> {Messaging | NotificationHub} [-Profile <AzureProfile>]  [<CommonParameters>]

This creates a new Hub with "standard" scaling and 1 unit. How can I change this values programatically without using the Azure Portal?


Dan Danneberg

EDI

$
0
0
I would like to use the Service Bus messaging as EDI between 2 or more companies. Is it feasible ?

Can I increase the number of Event Hub messages delivered in each ProcessEventsAsync call?

$
0
0

I am using Event Hubs to process data that is flowing into my system. I have implemented an IEventProcessor and the messages are delivered to my ProcessEventsAsync method. I am typically seeing these messages delivered in batches of 10. I am doing quite a bit of volume in this Event Hub and I would like to get the messages in larger batches for processing efficiency. Is there a way for me to tell the Event Hub to deliver more than 10 messages at a time?

I see this option in EventHubReceiver.ReceiveAsync, but I do not see a way to do this for an IEventProcessor.

Thanks!

Bryan

Service Bus 1.1 - 401 Unauthorized with credentials in connection string

$
0
0

I have a standalone Windows Server 2012 R2 instance (which happens to be in a VM hosted in Azure) where I have installed Service Bus 1.1, with the intent to have it managed via an Azure Pack setup.  Additionally, I have created a self-signed CA cert and self-signed cert that I have in place on my server and exported/imported to my client machine.  From a simple C# client, I am attempting to connect, create a queue, write to the queue, and read from the queue, but I cannot get past the initial connection.

The connection string in my app.config looks like this (where <vm> stands for the actual host name and <myNS> stands for my actual namespace; also, I have mapped the 8xxx endpoints on the VM into the actual 9xxx ports): 
Endpoint=sb://<vm>.cloudapp.net/<myNS>;StsEndpoint=https://<vm>.cloudapp.net:8355/<myNS>;RuntimePort=8354;ManagementPort=8355;WindowsUsername=ServiceBusUser;WindowsDomain=<vm>;WindowsPassword=<password>

The user is a local user that has membership in the Administrators group.  When I run the app using this connection string, I receive:

 {"The token provider was unable to provide a security token while accessing 'https://<vm>.cloudapp.net:8355/<myNS>/$STS/Windows/';. Token provider returned message: ''."} 

 The nested InnerException is: "The remote server returned an error: (401) Unauthorized."

I have tried several different credentials and consistently end up with the 401.  Alternatively, I have tried using SAS instead, but am sorting out a configuration exception that is thrown as the underlying library can't seem to parse the connection string correctly.  I've searched quite a bit, but have only found information on authentication in forum and blog posts (perhaps I missed some msdn docs?).  Is there a specific setup for a standalone server in regards to authentication for service clients?


Please remember to mark replies as answers if they help you.

BrokeredMessage.CompleteAsync always gives ObjectDisposedException

$
0
0

message.CompleteAsync().ContinueWith(tr =>
                    {
                        if (tr.Exception != null)
                        {                       
                            Trace.TraceWarning("Failed to Complete BrokeredMessage \n" + tr.Exception.ToString());
                        }
                    });

--------------------------------------

Failed to Complete BrokeredMessage 
System.AggregateException: One or more errors occurred. ---> System.ObjectDisposedException: BrokeredMessage has been disposed.
   at Microsoft.ServiceBus.Messaging.BrokeredMessage.ThrowIfDisposed()
   at Microsoft.ServiceBus.Messaging.BrokeredMessage.EndComplete(IAsyncResult result)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
   --- End of inner exception stack trace ---
---> (Inner Exception #0) System.ObjectDisposedException: BrokeredMessage has been disposed.
   at Microsoft.ServiceBus.Messaging.BrokeredMessage.ThrowIfDisposed()
   at Microsoft.ServiceBus.Messaging.BrokeredMessage.EndComplete(IAsyncResult result)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)<---

Viewing all 1916 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>