Application Monitor in .NET

P

Prateek

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.
 
R

Rob R. Ainscough

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top