Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.NullReferenceException at application startup under Win8.1 #1

Closed
MagicAndre1981 opened this issue Dec 1, 2022 · 2 comments
Closed

Comments

@MagicAndre1981
Copy link

Directly at start, I get this System.NullReferenceException:

[Success] Name WMIWatcher
[Success] ServiceName WMIWatcher
Topshelf v4.3.0.0, .NET 7.0.0 (7.0.0)
The WMIWatcher service is now running, press Control+C to exit.
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
   at WMIWatcher.ETW.WMIStart..ctor(TraceEvent event, TraceLogEventSource realtimeSource, TraceLog log) in C:\Sourc
e\git\WMIWatcher\ETW\WMIStart.cs:line 55
   at WMIWatcher.WMIEventParser.Parse(TraceEvent data) in C:\Source\git\WMIWatcher\WMIEventParser.cs:line 77
   at Microsoft.Diagnostics.Tracing.TraceEventDispatcher.DoDispatch(TraceEvent anEvent)
   at Microsoft.Diagnostics.Tracing.Etlx.TraceLog.DispatchClonedEvent(TraceEvent toSend)
   at Microsoft.Diagnostics.Tracing.Etlx.TraceLog.FlushRealTimeEvents(Object notUsed)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Ob
ject state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Ob
ject state)
   at System.Threading.TimerQueueTimer.Fire(Boolean isThreadPool)
   at System.Threading.TimerQueue.FireNextTimers()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()

Under Windows 10 it starts and displays WMI activities.

@Alois-xx
Copy link
Owner

Alois-xx commented Dec 1, 2022

Try v 1.0.6.0 which should fix the issue.

@MagicAndre1981
Copy link
Author

Try v 1.0.6.0 which should fix the issue.

work fine now and shows WMI activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants