Re: Writing an app to monitor a Windows service

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi Crouchie, how did your windows service "publish" the data? Did it create
a log file to the event viewer / file system or did it "make it availabile"
via remoting?

I'll then presume the Systray app is configured to look at the server the
service is running on.



"Crouchie1998" <crouchie1998@xxxxxxxxxxx> wrote in message
news:OdfvE2ORFHA.3880@xxxxxxxxxxxxxxxxxxxxxxx
>I wrote an application like you described. The Windows application just sat
> in the System Tray & then the service would run under local system.
>
> What I looked into before writing this application is remoting & I found
> that was the best way to handle this.
>
> Make sure you code security rights for accessing the files for both the
> service & the Windows application
>
> I hope this has shed some light on what you need to do.
>
> One last thing: Do something to spoof your e-mail address, otherwise you
> will be SPAMMED forever more
>
> Crouchie1998
> BA (HONS) MCP MCSE
>
> "Chris Dunaway" <dunawayc@xxxxxxxxx> wrote in message
> news:1113920064.566293.206790@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>> I am writing a Windows Service that reads and processes files on a set
>> schedule. I want to create a second app that can monitor the Windows
>> service. The Windows service will write trace messages at certain
>> points while executing. The monitoring app I want to write will be
>> very simple, just picking up these traces and displaying them to show
>> progress of the service.
>>
>> My question is what is the best method of communication between the
>> apps? The monitoring app may be run on the same machine or on the same
>> network as the service, but not, for example, over the internet.
>> Should I use named pipes? TCP client/server? Ideally, the service
>> would somehow be able to detect if there were any "listeners" and only
>> write the trace messages if any listeners were present.
>>
>> I was wondering what others have done in this regard and can you
>> suggest some code or topics I should look at? What would be the best
>> way to accomplish this?
>>
>> Thanks
>>
>
>


.



Relevant Pages

  • RE: dll problem on Remoting app
    ... We have a Windows Application solution with many class ... libraries and one of them libraries reference to an external dll ... Finally in our config file for MyApp we have an option to decide if app will ... be Local or Remoting, if remoting the application creates objects through ...
    (microsoft.public.dotnet.framework)
  • Re: Windows.. its like coming home!
    ... gradual transition, especially in going from OS 9 to OS X. ... They needed something that could compete with Windows, ... mean by the "2 of every app" comment before - Apple took whatever apps ... I've found that because the Dock shows applications rather than windows, ...
    (comp.sys.mac.advocacy)
  • Re: Windows.. its like coming home!
    ... gradual transition, especially in going from OS 9 to OS X. ... They needed something that could compete with Windows, ... mean by the "2 of every app" comment before - Apple took whatever apps ... I've found that because the Dock shows applications rather than windows, ...
    (comp.sys.mac.advocacy)
  • RE: Beginners Questions
    ... We do use Windows form on the presentation layer which is on ... terminal server and call web services on the business logic side. ... of using "proxy" authentication on SQL Server. ... > I have written an app with a Windows Forms UI that is deployed to clients ...
    (microsoft.public.dotnet.distributed_apps)
  • Re: Frustration level with Windows -- ARG!
    ... I can have an app sieze and you can go take a ten ... That is MS-Outlook, not Windows. ... to the processes tab, not the applications tab. ... and it tries to stop them "gently" if it can, before resorting to kill -9. ...
    (comp.sys.mac.advocacy)