I'm trying register EventSource using Microsoft.Diagnostics.Tracing.EventRegister from nuget. I rebuild my project and its generates manifest.
After that I run cmd by admin and execute this command:
wevtutil.exe im "ETW loggiing.MyTestSource.etwManifest.man"
Then cmd return this warning
**** Warning: Publisher MyTestSource resources could not be found or are not
accessible
to the EventLog service account (NT SERVICE\EventLog).
After that I changed file permission
It works, but why this warning occured and how can I fix that with code?
I fixed this by setting access to dll file from code: