Solved

How to get status from Windows service on a server?

Posted on 2009-07-06
5
319 Views
Last Modified: 2012-05-07
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.
0
Comment
Question by:Tom Sage
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 14

Expert Comment

by:shahprabal
ID: 24786878
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.
0
 
LVL 14

Accepted Solution

by:
shahprabal earned 250 total points
ID: 24786901
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.
0
 
LVL 14

Expert Comment

by:shahprabal
ID: 24786916
Also, if you later need to pass this info to another (web)application, it will be very easy to plug into the webservice.
0
 
LVL 15

Assisted Solution

by:jinal
jinal earned 250 total points
ID: 24787383
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.
0
 

Author Closing Comment

by:Tom Sage
ID: 31600235
Thank you for your help.  I will investigate these options.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question