Note that there are some explanatory texts on larger screens.

plurals
  1. POOn premise NServicebus applicaton receiving messages from Azure ServiceBus queue
    text
    copied!<p>I am currently struggling to get something up and running on an nServiceBus hosted application. I have an azure ServiceBus queue that a 3rd party is posting messages to and I want my application (which is hosted locally at the moment) to receive these messages. </p> <p>I have googled for answers on how to configure the endpoint but I have had no luck in a valid config. Has anyone ever done this as I can find examples of how to connect to Azure storage queues but NOT servicebus queue. (I need azure servicebus queues for other reasons)</p> <p>The config I have is as below</p> <pre><code>public void Init() { Configure.With() .DefaultBuilder() .XmlSerializer() .UnicastBus() .AzureServiceBusMessageQueue() .IsTransactional(true) .MessageForwardingInCaseOfFault() .UseInMemoryTimeoutPersister() .InMemorySubscriptionStorage(); } </code></pre> <p>. Message=Exception when starting endpoint, error has been logged. Reason: Input queue [mytimeoutmanager@sb://[<strong>*</strong>].servicebus.windows.net/] must be on the same machine as this Source=NServiceBus.Host</p> <p>.</p> <pre><code>&lt;configuration&gt; &lt;configSections&gt; &lt;section name="MessageForwardingInCaseOfFaultConfig" type="NServiceBus.Config.MessageForwardingInCaseOfFaultConfig, NServiceBus.Core" /&gt; &lt;section name="UnicastBusConfig" type="NServiceBus.Config.UnicastBusConfig, NServiceBus.Core" /&gt; &lt;section name="AzureServiceBusQueueConfig" type="NServiceBus.Config.AzureServiceBusQueueConfig, NServiceBus.Azure" /&gt; &lt;section name="AzureTimeoutPersisterConfig" type="NServiceBus.Timeout.Hosting.Azure.AzureTimeoutPersisterConfig, NServiceBus.Timeout.Hosting.Azure" /&gt; &lt;/configSections&gt; &lt;AzureServiceBusQueueConfig IssuerName="owner" QueueName="testqueue" IssuerKey="[KEY]" ServiceNamespace="[NS]" /&gt; &lt;MessageForwardingInCaseOfFaultConfig ErrorQueue="error" /&gt; &lt;!-- Use the following line to explicitly set the Timeout manager address --&gt; &lt;UnicastBusConfig TimeoutManagerAddress="MyTimeoutManager" /&gt; &lt;!-- Use the following line to explicity set the Timeout persisters connectionstring --&gt; &lt;AzureTimeoutPersisterConfig ConnectionString="UseDevelopmentStorage=true" /&gt; &lt;startup useLegacyV2RuntimeActivationPolicy="true"&gt; &lt;supportedruntime version="v4.0" /&gt; &lt;requiredruntime version="v4.0.20506" /&gt; &lt;supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" /&gt; &lt;/startup&gt; &lt;/configuration&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload