• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 325
  • Last Modified:

How to get status from Windows service on a server?

I plan to create a .NET windows service to perform data conversion on a server.  I would like to be able to get status information from this service, such as details on the file being converted, from any other PC on the network.  I can use .NET 2.x or 3.x.

What is the best way to get this information from a windows service?

Thank you for your help.
Tom Sage
Tom Sage
  • 3
2 Solutions
You can have it call a webservice with the status msg, you can write the info to the windows log, you can popup a notify icon, etc.
I like the webservice option since that way if you want to change the processing of the status you don't have to recompile, redeploy the service. Your webservice decides what to do with the status info so you can change it easily.
Also, if you later need to pass this info to another (web)application, it will be very easy to plug into the webservice.
There are many ways to do it.

1. Web Service ( Already defined in previous comments)
2. Event Log and Access Event log using server .
3. Window Service and capture their event outside using Service controler.
4. Maintain Custom XML Log file.
Tom SageAuthor Commented:
Thank you for your help.  I will investigate these options.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now