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

  • Home
  • SEARCH
  • 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 7547449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:27:21+00:00 2026-05-30T09:27:21+00:00

I am trying to host a WCF service over net.msmq. The following code gives

  • 0

I am trying to host a WCF service over net.msmq.

The following code gives me “The communication object, System.ServiceModel.ServiceHost, cannot be used for communication because it is in the Faulted state.” Why is this? It works for net.tcp and http, so I assumed it should work for msmq, too.

I have already created a private message queue named “HelloIndigo”.

using (ServiceHost host = new ServiceHost(typeof(HelloIndigoService),
                   new Uri("net.msmq://localhost/private/HelloIndigo")))
{
    host.AddServiceEndpoint(typeof(IHelloIndigoService),
                            new NetMsmqBinding(), "HelloIndigoService");
    host.Open();
    Console.WriteLine("Press <Enter> to terminiate the service host.");
    Console.ReadLine();
}
  • 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-30T09:27:22+00:00Added an answer on May 30, 2026 at 9:27 am

    Try enabling tracing, this should give you some exception info.

    http://msdn.microsoft.com/en-us/library/ms733025.aspx

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

Sidebar

Related Questions

When trying to host my WCF service using Net Tcp channel through Windows Console,
I'm trying to host a WCF service with net.tcp binding within an IIS 7.5
I am trying to host a WCF Service with Net TCP bindings in IIS
I am trying to host a WCF service written in .NET 3.5 in IIS
I'm trying to host my WCF service in a windows service host. For managing
I have a WCF service. I am trying to host the service in a
I am trying to publish a WCF service that sends to a NSB host.
I have a simple test purpose WCF service. I'm trying to host it under
I'm trying to learn how to create a WCF Service and host in on
I'm trying to host a WCF service in IIS7 that works with both Silverlight

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.