Solved

How to get status from Windows service on a server?

Posted on 2009-07-06
5
314 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
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 …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

733 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