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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:03:41+00:00 2026-05-24T10:03:41+00:00

This is probably an easy solution. I have created the simplest WCF host in

  • 0

This is probably an easy solution.

I have created the simplest WCF host in a project like this

    static void Main(string[] args)
    {
        using (ServiceHost host = new ServiceHost(
           typeof(AmphoraService.ConsignmentService.Consignment)))
        {
            host.Open();
            Console.WriteLine("Consignment Service Activated! Press <Enter> to terminate " +
               "the Host application.");
            Console.WriteLine();
            Console.ReadLine();
        }
    }

I have supplied the configuration in the app.config file.

When pressing F5 in Visual Studio it runs successfully. The text is displayed in the console window and “netstat -a” shows that port 808 is listening (its a nettcp binding)

However, when I exit Visual Studio and try to click on the bin\debug***.exe file, a console window appears but nothing happens! And “netstat -a” shows that port 808 is NOT listening.

What am i overlooking?

  • 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-24T10:03:42+00:00Added an answer on May 24, 2026 at 10:03 am

    If nothing happens, its likely that the program is sitting on the host.Open() line. Try attatching visual studio to that instance (using Debug > attatch to process).

    You can also try waiting a little while and see if you get an exception such as a timeout or something, its possible that something is going wrong when the ServiceHost is trying to instansiate your service object

    Perhaps some resource gets locked when you run it the first time (in visual studio)? what if you reboot and run the exe from explorer first?

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

Sidebar

Related Questions

This is probably an easy solution but Im not getting it. So I have
This is probably easy but I am getting stuck: when I build a solution
This is blowing my mind because it's probably an easy solution, but I can't
This is probably an easy question... I have 4 source versions of the same
There is probably a very easy solution for this problem. I could easily do
This is probably easy, although I cant seem to find the solution. In my
This is probably trivial, and I do have a solution but I'm not happy
I've been working all day and I somehow can't get this probably easy task
This is probably an easy question, but I want to understand better how Apache
This is probably an easy question for anyone with any moderate expertise with web

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.