Everybody who worked with Navision Application Server or NAV client or Navision Database Server knows that text from their event log. Now, I can show you how to clear this text from your event log.
- Some info about how the Event log is displaying the messages:
- Events in event log are just set of attributes and texts. Event log viewer is able to take these attributes and send it to the application which generate it for “translation” (for example, application can add some useful information for the user…). To be able to send it to the application, the event log viewer must know the library, which is responsible for translating the message. Of course, this is written in the registry (I will show you where…
- Because previous point, the resultant text depends on computer, where you are viewing it. When you view event log from exchange server on PC with Windows XP, event viewer will not know anything about exchange and will show you the information “The description for Event ID ( nnnnn ) in Source ( XXXXX ) cannot be found…”. Same thing will happen with NAS messages…
- You can found that all services for NAS registered through command prompt (installasservice) are not including this text in their messages. Just service registered through installation process have this “problem”.
To know more, you need to look into this registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application. You can see, that there are keys for all services, which are registered in Windows. In each key are two or more values. The main two are EventMessageFile and TypesSupported. First one is text and it is the path and filename of the library responsible for the “translation”, second one is just some attribute. If the reg key for the service code saved in the Source field of the message is not existing, the event log will include the text:
The description for Event ID ( XXXXX ) in Source ( <Service name> ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event:
- To solve this, you just need to create the key with name <Service name> and set the two values. The resultant reg file will look like:
Windows Registry Editor Version 5.00
That’sall folks! You can use that to solve this problem with every application. But you just needs to know, which file is the correct translator.