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 6827445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:15:59+00:00 2026-05-26T22:15:59+00:00

In my current system I have a router service and over a dozen (about

  • 0

In my current system I have a router service and over a dozen (about half use msmq, rest use tcp) WCF services hosted via IIS. I’ve been tasked with moving all services except for the router to a windows service. This has been accomplished using the same configurations that were present using the IIS web.config file. Here is a snippet of the previous configs (public queue for service: myservices/wcfservice):

  <!--Router Service web.config-->
  <client>
    <endpoint address="net.msmq://localhost/MyServices/WCFService.svc" binding="netMsmqBinding" contract="*" name="IWCFService_Msmq" />
  </client>

  <!--Services web.config-->
  <service behaviorConfiguration="SomeServiceBehavior" name="WCFService">
    <endpoint binding="netMsmqBinding" name="IWCFService_Msmq"
      contract="IWCFService" />
    <host>
      <baseAddresses>
        <add baseAddress="net.msmq://localhost/MyServices/WCFService" />
      </baseAddresses>
    </host>
  </service>

I’m confused as to why this works, as the service has a net.tcp binding and the router has msmq, and when I asked around, I was told it was “magic.” I tried to do the same thing with my setup (router to windows service) using a similar configuration but get an error message:

<!--Router Service web.config-->
  <client>
    <endpoint address="net.msmq://localhost/MyServices/WCFService" binding="netMsmqBinding" contract="*" name="IWCFService_Msmq" />
  </client>

  <!--One "other" Services hosted in Windows Service app.config-->
  <service behaviorConfiguration="SomeServiceBehavior" name="WCFService">
    <endpoint binding="netMsmqBinding" name="IWCFService_Msmq"
      contract="IWCFService" />
    <host>
      <baseAddresses>
        <add baseAddress="net.tcp://localhost/MyServices/WCFService" />
      </baseAddresses>
    </host>
  </service>

This has worked fine with all my services that are just using tcp, but when I try this with msmq and attempt to start the windows service, I get the following error in the Event Viewer:

Service cannot be started. System.InvalidOperationException: Could not find a base address that matches scheme net.msmq for the endpoint with binding NetMsmqBinding. Registered base address schemes are [net.tcp].

I’m new to msmq, so any help with be appreciated. Thanks!

Updated:

I’ve updated the base address in the service app.config to match the address that is in the router web.config. I tried this previously and it didn’t work. I later found out it was because I didn’t make the msmq itself a “Transactional Queue” (which was needed for our setup). Once this was done, everything worked out!

<!--One "other" Services hosted in Windows Service app.config-->
  <service behaviorConfiguration="SomeServiceBehavior" name="WCFService">
    <endpoint binding="netMsmqBinding" name="IWCFService_Msmq"
      contract="IWCFService" />
    <host>
      <baseAddresses>
        <add baseAddress="net.msmq://localhost/MyServices/WCFService" />
      </baseAddresses>
    </host>
  </service>
  • 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-05-26T22:16:00+00:00Added an answer on May 26, 2026 at 10:16 pm

    Why not give all of your MSMQ services their own config and all the tcp services their own? The issue is obviously it looks for a base address when you choose the binding to be msmq, and it can’t find an msmq binding because all you’ve provided is a tcp base address binding. You can also of course add another base address that uses net.msmq inside the baseaddresses node.

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

Sidebar

Related Questions

I have a project involving a web voting system. The current values and related
On my current project, which is a delivery system, I have a list of
How would I get the system's current language and use that for the ResourceBundle?
I have a software system that performs OCR on Multiple machine simultaneously. Current system
I have a great technique to get the associated extension/image in the current system
I have two Linux/MySQL servers located in the UK, current system timezone on both
I'm trying to determine if the current system is 32 or 64 bit. And
We are designing an update to a current system (C++\CLI and C#). The system
How can I get the current system status (current CPU, RAM, free disk space,
One of my application tasks is to get the current system date and compares

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.