Windows Service (C# -4.5) is crashing on Windows Embedded standard POS Ready 7 OS

0

I have developed a application of Network usage in Windows Service C# with help of Microsoft.Diagnostics.Tracing.TraceEvent.dll and amd64/KernelTraceControl.dll of Windows 8.1/10 compatibility. It is working fine in Windows 8.1/10. Now, I need to run same service in Windows Embedded Standard POS Ready 7 OS. But, the service is crashing and giving following error in event viewer-

Application: CavWMON.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileLoadException
Stack:
   at CavWMON.networkUsage.NetworkEventProducer.StartEtwSession()
   at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Threading.ThreadHelper.ThreadStart()

Faulting application name: CavWMON.exe, version: 1.0.0.0, time stamp: 0x5c9c671f
Faulting module name: KERNELBASE.dll, version: 6.1.7601.24387, time stamp: 0x5c7f389a
Exception code: 0xe0434352
Fault offset: 0x0000845d
Faulting process id: 0xa3c
Faulting application start time: 0x01d4f445e06e7f00
Faulting application path: C:\Program Files\opt\cavisson\wmonitors\bin\CavWMON.exe
Faulting module path: C:\Windows\system32\KERNELBASE.dll
Report Id: 23fa77f0-6039-11e9-ae03-0800273a98f7

While the whole code is written under try/catch block. and in POS Ready 7 OS, I'm using compatible (lower version) DLL(s). And sample code is working with console application but with Windows Service it is not working.

c#
windows-services
windows-embedded-standard
asked on Stack Overflow Apr 18, 2019 by D Singh • edited Apr 18, 2019 by Makyen

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0