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

The Archive Base Latest Questions

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

So we run in an SOA architecture. I have a service that I’m trying

  • 0

So we run in an SOA architecture. I have a service that I’m trying to debug into a call that comes from a WinForms app in a different solution.

In this winforms app I have referenced the service on localhost correctly in the app.config, and now I want to start an instance of the WCF service so I can set a breakpoint and step through it.

When I go into the service, I right click the project, go to properties, and under ‘Start Action’ I choose the .exe file in the services bin/debug/ directory. Then I save, compile, and hit F5 to start an instance of it. I get this error:

enter image description here

What should I be doing?

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

    you have to host the service in a process and then debug it from there. This could be as simple as writing a console app to host the service, or writing a windows service to host it, or a windows forms app, or hosting it in IIS.

    you can host in a console app like so:

    static void Main(string[] args)
    {
      using (ServiceHost host = new ServiceHost(typeof(YourNamespace.YourServiceInterface)))
      {
        host.AddServiceEndpoint(typeof(
    YourNamespace.YourServiceInterface), new NetTcpBinding(), "net.tcp://localhost:9000/YourService");
        host.Open();
    
        Console.WriteLine("Press <Enter> to terminate the Host 
    application.");
        Console.WriteLine();
        Console.ReadLine();
      }
    }
    

    this article shows how to host in a windows service. I would recommend adding

    Debugger.Launch();
    

    as the first line in the OnStart method so that you can attach the debugger when the service starts. This will help debug any startup issues. Otherwise you can just choose AttachToProcess from the Debug menuand attach to the running windows service.

    you need to add using System.Diagnostics to use the Debugger.Launch(); method

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

Sidebar

Related Questions

I have an SOA app, and have started to run into some performance issues.
I have run into an issue and I think that my solution is very
I run into this problem. I have a textarea which I only want to
I have a WCF service that calls the following method in one of my
I have some code in umbraco that is run and creates a javascript file
I'm trying to run python code that has an inheritence pattern like so: A
There's been a lot of interest in Service-Oriented Architecture (SOA) at my company recently.
I have done some investigation around SOA and Component Based Architecture, and it seems
I have a semi-large web application that we run locally and I need to
I'm working on some screen scraping software and have run into an issue with

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.