C# GetServiceHandle error
Hi
I am getting this strange error after 20 -30 minutes of starting of my application.
This application checks after every 2 minutes whether the status of the service has changed or not. The code is working fine elsewhere but on a particular computer the below error comes
System.InvalidOperationException: Cannot open MCXBroadcastAdapter service on computer '192.168.0.10'. ---> System.ComponentModel.Win32Exception: The remote procedure call failed
--- End of inner exception stack trace ---
at System.ServiceProcess.ServiceController.GetServiceHandle(Int32 desiredAccess)
at System.ServiceProcess.ServiceController.GenerateStatus()
at System.ServiceProcess.ServiceController.get_Status()
at SMPresentation.Controls.Service.refreshTimer_Tick(Object sender, EventArgs e)
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.Callback(IntPtr hWnd, Int32 msg, IntPtr idEvent, IntPtr dwTime)
Though the same check is called after every 2 minute ,the problem occurs only after 20- 30 minutes
Any suggestions , help ????