Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save alexandervantrijffel/ab471ef3489923efd80657a4e1122abc to your computer and use it in GitHub Desktop.
Save alexandervantrijffel/ab471ef3489923efd80657a4e1122abc to your computer and use it in GitHub Desktop.
Prevent The description for Event ID could not be found" message in log events
I got this error after creating an event source under the Application Log from the command line using "EventCreate". This command creates a new key under: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application
If you look at the Key that's been created (e.g. SourceTest) there will be a string value calledEventMessageFile, which for me was set to %SystemRoot%\System32\EventCreate.exe.
Change this to c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\EventLogMessages.dll
Delete theCustomSource and TypesSupported values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment