Unable to write error to Event Log - Diagnostics Service and Diagnostics Console - English - Foundation 22.1 - OnBase - external

Diagnostics Service and Diagnostics Console

Platform
OnBase
Product
Diagnostics Service and Diagnostics Console
Release
Foundation 22.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. For more registry information, see the following Microsoft articles: http://support.microsoft.com/kb/256986 and http://technet.microsoft.com/en-us/library/cc725612.aspx

  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.