Solved

How to get status from Windows service on a server?

Posted on 2009-07-06
5
271 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Thank you for your help.  I will investigate these options.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now