Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9178401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:32:33+00:00 2026-06-17T17:32:33+00:00

I am trying to get to grips with NSerivceBus and although it’s mostly going

  • 0

I am trying to get to grips with NSerivceBus and although it’s mostly going smoothly I am struggling to understand how to configure the EndPointName.

So for example, after following a few examples I have managed to come up with the following but any attempt I make to change the EndPoint Name fails.

So the myServer queue is currently what it is named, taken, I think from the namespace here:

  namespace MyServer
{
    class EndPointConfig : IConfigureThisEndpoint, AsA_Server
    {
    }
}

But when i Put [EndpointName(“AnotherQueue”)] nothing changes (Except it doesnt fill the myServer queue.

I also tried to change the Global.ASAX:

public static IBus Bus { get; set; }
        void Application_Start(object sender, EventArgs e)
        {
            Bus = NServiceBus.Configure.With()
                .Log4Net()
                .DefaultBuilder()
                .DefineEndpointName("AnotherQueue")
                .XmlSerializer()
                .MsmqTransport()
                    .IsTransactional(false)
                    .PurgeOnStartup(false)
                .UnicastBus()
                    .ImpersonateSender(false)
                .CreateBus()
                .Start();
        }

But again, it didnt work.

I am testing it by looking at mmc and checking the message queuing there.

Lastly I have tried altering the web.config

<configSections>
        <section name="MsmqTransportConfig" type="NServiceBus.Config.MsmqTransportConfig, NserviceBus.Core"/>
        <section name="UnicastBusConfig" type="NServiceBus.Config.UnicastBusConfig, NServiceBus.Core"/>
    </configSections>

    <MsmqTransportConfig ErrorQueue="error" NumberOfWorkerThreads="1" MaxRetries="5"/>

    <UnicastBusConfig>
        <MessageEndpointMappings>
            <add Messages="MyMessage" Endpoint="AnotherQueue"></add>
        </MessageEndpointMappings>
    </UnicastBusConfig>

And still nothing.

Is anyone able to help? I’m still trying to get my head around this (It’s a new technology to me) so I apolagise if I have asked this question poorly.

Thanks in advance
Lex

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T17:32:34+00:00Added an answer on June 17, 2026 at 5:32 pm

    Couple things:

    I’m not 100% sure, but I don’t think you want to use IConfigureThisEndpoint, and AsA_Server if you are hosting in a web application. I believe the configuration code you have in Application_Start is all you need. The other means of configuring is for when you host in the NSB’s own process (as a windows service or console).

    Try putting DefineEndPointName("AnotherQueue") as the first command after NServiceBus.Configure.With(). This is the way I have it setup and it works, and I believe the order of the commands after With() do matter, and can fail silently (I think this will be addressed in a future release).

    Depending on what you are trying to accomplish, you may not need the unicastbus config at all. That is used to define endpoints on the client side–in other words, use it to define endpoints your app wants to talk to.

    Finally, use the debug window of your web app as you run it to find clues about what may be going wrong. NSB produces a lot of very useful logging information in debug mode, all of which should be sent to the debug window. It may be that your app doesn’t have permissions to create the queue, or something along those lines. Once I figured that bit out, troubleshooting a lot of the “learning curve problems” became much easier.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to get to grips with HLSL... I understand how you can specify
I am currently trying to get to grips with bootstrap and am struggling to
I am trying to get to grips with how you display data from a
I'm trying to get to grips with web2py/python. I want to get the user
I'm trying to get to grips with Qt's signal and slots mechanism. I have
I'm trying to get to grips with NHibernate, Fluent NHibernate and Spring. Following domain-driven
I'm trying to get to grips with regular expressions: I have a database connection
I am trying to get to grips with programmatically configuring views. I have a
Hi i am trying to get to grips with Dapper. My situation is i
I've been trying to get to grips with Core Data and I'm having some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.