Unable to write error to Event Log - Diagnostics Service and Diagnostics Console - Foundation 24.1 - Foundation 24.1 - Ready - OnBase - external

Diagnostics Service and Diagnostics Console

Platform
OnBase
Product
Diagnostics Service and Diagnostics Console
Release
Foundation 24.1
License

When you are running the Diagnostics Console or Diagnostics Service, the following error may be logged to the Errors tab:

Could not find source '[source name]' Unable to write error to Event Log.

This error means that the message source defined in the application's configuration file cannot be found and is therefore unable to write an exception to the OnBase Log in the Windows Event Viewer.

Check the configuration file and ensure that the WindowsEventLogging sourcename value is a valid message source. Message sources are defined in the registry under \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\ OnBase Log.

The following steps describe how to add the message source to the Windows Registry.

CAUTION:

Modify the registry at your own risk. Incorrectly editing the Windows registry can cause serious problems that may require you to reinstall your operating system. Be sure to back up the registry before making any changes to it.

  1. Select Start | Run.
  2. Enter regedt32 and click OK to open the Windows Registry Editor.
  3. Browse to the following key:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\ OnBase Log
  4. Right-click OnBase Log and select New | KEY.
  5. Name the new key the sourcename value from the application's configuration file.
  6. Right-click the new key and select New | Expandable String Value.
  7. Name the new value EventMessageFile.
  8. Double-click EventMessageFile.
  9. Set the Value to the following:
    C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\EventLogMessages.dll
  10. Click OK.
    The application can now write to the OnBase Log in the Windows Event Viewer.