473,322 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Windows Service stops triggering monitoring event for starting process

I am developing a Windows Service Application in VB.net (using WMI). The application monitors for occurrence (Start) of any new event/ process in Win32 environment. The code which I am using for handling this monitoring event is as under:-

WithEvents Watcher As ManagementEventWatcher

Watcher = New ManagementEventWatcher(New WqlEventQuery("Select * From Win32_ProcessStartTrace"))

AddHandler Watcher.EventArrived,AddressOf ManagementWatcher_StartEventArrived

Watcher.Start()

The problem which I have been facing is that the application works fine in case of service installation/un-installation, begin and stop, at its first run i.e. systems startup but stops triggering monitoring event for starting processes, if we un-install and then again install and begin the service after span of some time (5-10 Mins). Moreover, the service is responding/triggering all remaining events, except the aforementioned monitoring event.

The odd behavior of the service will remain to continue until and unless I reboot my computer.

Please help me in this regard.
Sep 21 '10 #1
0 959

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Evgeny Cherny | last post by:
Hi, I need to start some Windows Service from ASP.NET. I use Process class of Framework. /***************************************************/ System.Diagnostics.Process p=new...
0
by: mgonzales3 | last post by:
Hey guys I keep getting this error when i try running my vb.net windows service. -------------------------- The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be found. The...
11
by: Michael Riggio | last post by:
Is there a way to have a windows service instantiate a class that is a web service, which will then be accessible to clients via HTTP? Thanks, -Mike
2
by: MatthewRoberts | last post by:
Howdy All, I have a Windows Service that often stops in its tracks with no exception and no explanation on our QA system. During testing on the development machine, it can handle any workload,...
6
by: Troy Murphy | last post by:
The help file for Visual Studio .NET version 1 had a Walkthru for installing a Windows Service that would monitor a folder. Version 1.1 does not seem to have that example anymore. Could someone...
6
by: Next | last post by:
Hello, In my OnStart event I have several checks to make sure values in the config file are correct. If any of the values are incorrect I don't want the service to start. Is there a "cancel...
2
by: John Grandy | last post by:
Unless I make the account under which my Windows Service runs a member of local Administrators, I get startup failures if I include the following code in the OnStart() event : ...
5
by: Ori :) | last post by:
Hi guys, I have a windows service which runs few timers to perform a certain task, my code is well wrapped with "Try...Catch"s, but still whenever an error occurs and an exception is being...
2
by: roberth | last post by:
Hi, I've created a simple Windows Service that starts an .exe with Process.Start(). However, I've noticed that when I logoff from one user account to another the child process (.exe) is shutdown...
3
by: Smithers | last post by:
I'm writing a new Windows Service. During the OnStart event procedure I initialize a few things. If initialization fails, then I do not want for the service to start. What I currently have is...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.