Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / July 2006

Tip: Looking for answers? Try searching our database.

Application Monitor in .NET

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Prateek - 11 Jul 2006 14:06 GMT
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.
Rob R. Ainscough - 11 Jul 2006 18:09 GMT
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.

> Hi,
>
[quoted text clipped - 28 lines]
>
> pls suggest what i am doing wrong.
Brendan Green - 12 Jul 2006 03:33 GMT
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/frlr
fsystemserviceprocessservicebaseclassoncustomcommandtopic.asp


>I ran into this problem, apparently anything running from Windows service
>thread is assigned a different thread level and that checks to see if
[quoted text clipped - 33 lines]
>>
>> pls suggest what i am doing wrong.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.