Solved

How to get status from Windows service on a server?

Posted on 2009-07-06
5
308 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:MisterT25
  • 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:MisterT25
ID: 31600235
Thank you for your help.  I will investigate these options.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Modal Popup Extender control 1 38
MailAddress in vb 4 29
Convert Ctime to date time in textfile? 7 32
VB.net Adding a row to a DataGridView that has a checkbox column 5 23
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 …
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …

837 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