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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:35:23+00:00 2026-06-17T11:35:23+00:00

I have a Complex Service that i am working with, and as with all

  • 0

I have a Complex Service that i am working with, and as with all windows services, there is no Console to read any debug messages, or anything like that, so you would have to log all messages to a text file… i’m wanting to write in a small TCP Server (or UDP or NamedPipe doesn’t really matter), where i can have a debug application…so basically, the service runs all the time and has this listener / server (Tcp or otherwise) and is always writing Debug messages to the server, if i need to debug the server, i should be able to connect to it using a TCP Client (or whatever protocol) and read any debug messages, or anything where i would typically use Console.WriteLine(“Message”);

i know this seems like a crazy idea, but it’s something I’ve been considering and needed some input on…

my basic problem is that i can write a TCP Server into the Service, but i am unsure how to pass the messages to it all the time, or only when a client is connected, any advice or examples would be greatly appreciated.

Note: I am using C# and would like to stick to that language.

  • 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-17T11:35:24+00:00Added an answer on June 17, 2026 at 11:35 am

    In the past, I’ve used a TcpListener for a similar monitoring program. It’s an incredibly easy thing to create. And to communicate with it, I created a TcpClient in the service.

    A good example of how to make those two work together is in this answer.

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

Sidebar

Related Questions

I have a fairly complex multi-threaded Windows service working, but I can't figure out
I have a complex RIA client that communicates with a WCF SOAP web service,
Currently I have a service that downloads about 500 records of somewhat complex data,
I have built a C# .net web service that takes a complex type as
Let's say we have a Web Service that use WSDL complex type extensions. Consider
I have a complex WCF service that uses for example TCP, WindowsLogin, CustomLogin and
I have a working WCF service and worker role that I have been debugging
I'm working on a web-application that operates on services . Every service is normally
I have a JAX-RPC (Java) web service that needs to return a complex polymorphic
I have a web service that returns a complex data structure representing the results

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.