Hello there,
Adding your code might help in getting proper response for your query.
Is there anything in event viewer?
I would suggest you to use proc mon to identify if there is nothing on the event viewer.
Process Monitor is an advanced monitoring tool for Windows that shows real-time file
system, Registry and process/thread activity. You can get the tool from here
https://docs.microsoft.com/enus/sysinternals/downloads/procmon
System Monitor (Sysmon) is a Windows system service and device driver that, once installed on a system, remains resident across system reboots to monitor and log
system activity to the Windows event log.You can get the tool from here
https://docs.microsoft.com/enus/sysinternals/downloads/sysmon
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer--