|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Application Monitor in .NETI am developing a Application Monitor in .NET but it seems it is not working. Pls guid me if anything is wrong. Here is the design of this server. 1 - I have created a dll which exposes an interface INotify which will be implemented by all my custom application . 2 - this dll is exposing 4 public method, start, stop, register and unregister 3 - I have created a windows service which cals start on the dll when server is started and stopped when service is stopped. 4 - I have created an windows application which has another class implements the INotify. 5 - the method of i notify is simple in nature, it just returns true on call. 6 - this class then calls the register method of Applicaiton monitor dll passing the object of the class 7 - The application monitor starts a thread which is called every 10 sec and on activation it checks all the registred objects by calling the Notify method on the object instance registered with it. Now if an doing things from from the windows application it works fine but when I have created a service which host the Application Monitor dl. it doesn't work at all. another thing, i am doing correctly..what exactly i want is, all custom applications developed by out team hosted on different machine which I want to monitor and notify appropriate group if it fails... pls suggest what i am doing wrong. I ran into this problem, apparently anything running from Windows service
thread is assigned a different thread level and that checks to see if "Interact with Desktop" is selected for the service. You MUST make sure the service has "interact with desktop" or else you will get no interface. Show quote "Prateek" <prateekb***@gmail.com> wrote in message news:1152623187.220742.162510@h48g2000cwc.googlegroups.com... > Hi, > > I am developing a Application Monitor in .NET but it seems it is not > working. Pls guid me if anything is wrong. > > Here is the design of this server. > > 1 - I have created a dll which exposes an interface INotify which will > be implemented by all my custom application . > 2 - this dll is exposing 4 public method, start, stop, register and > unregister > 3 - I have created a windows service which cals start on the dll when > server is started and stopped when service is stopped. > 4 - I have created an windows application which has another class > implements the INotify. > 5 - the method of i notify is simple in nature, it just returns true > on call. > 6 - this class then calls the register method of Applicaiton monitor > dll passing the object of the class > 7 - The application monitor starts a thread which is called every 10 > sec and on activation it checks all the registred objects by calling > the Notify method on the object instance registered with it. > > Now if an doing things from from the windows application it works fine > but when I have created a service which host the Application Monitor > dl. it doesn't work at all. another thing, > > i am doing correctly..what exactly i want is, all custom applications > developed by out team hosted on different machine which I want to > monitor and notify appropriate group if it fails... > > pls suggest what i am doing wrong. > Interact with Desktop is a bad idea, and likely won't work in Vista.
Have your applications interact with the service this way: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemserviceprocessservicebaseclassoncustomcommandtopic.asp Show quote "Rob R. Ainscough" <roba***@pacbell.net> wrote in message news:eCIt7yQpGHA.1600@TK2MSFTNGP04.phx.gbl... >I ran into this problem, apparently anything running from Windows service >thread is assigned a different thread level and that checks to see if >"Interact with Desktop" is selected for the service. You MUST make sure >the service has "interact with desktop" or else you will get no interface. > > "Prateek" <prateekb***@gmail.com> wrote in message > news:1152623187.220742.162510@h48g2000cwc.googlegroups.com... >> Hi, >> >> I am developing a Application Monitor in .NET but it seems it is not >> working. Pls guid me if anything is wrong. >> >> Here is the design of this server. >> >> 1 - I have created a dll which exposes an interface INotify which will >> be implemented by all my custom application . >> 2 - this dll is exposing 4 public method, start, stop, register and >> unregister >> 3 - I have created a windows service which cals start on the dll when >> server is started and stopped when service is stopped. >> 4 - I have created an windows application which has another class >> implements the INotify. >> 5 - the method of i notify is simple in nature, it just returns true >> on call. >> 6 - this class then calls the register method of Applicaiton monitor >> dll passing the object of the class >> 7 - The application monitor starts a thread which is called every 10 >> sec and on activation it checks all the registred objects by calling >> the Notify method on the object instance registered with it. >> >> Now if an doing things from from the windows application it works fine >> but when I have created a service which host the Application Monitor >> dl. it doesn't work at all. another thing, >> >> i am doing correctly..what exactly i want is, all custom applications >> developed by out team hosted on different machine which I want to >> monitor and notify appropriate group if it fails... >> >> pls suggest what i am doing wrong. >> > > |
|||||||||||||||||||||||