TN3270 Server logs an Event ID: 702 message

We have come across a couple of reports of the TN3270 Server logging the following event message when Performance Monitor is started:

Event ID: 702
Source: TN3270 Server
Description:
Windows API RegOpenKeyEx failed with error code 2L (The system cannot find the file specified.) in function OpenPerformanceData.

 

This can occur when the registry entries for the TN3270 Performance Monitor counters are not correctly defined.

In the most recent occurrence of this problem, the TN3270 Server was not configured for use via the HIS 2010 Configuration Tool. In this scenario, several of the performance monitor counter registry entries were added under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\TN3270\Performance even though the TN3270 Server was not configured for use.

When Performance Monitor starts, it attempts to load all of the performance monitor counter DLLs registered on the system, which includes tn3prf.dll, which is the TN3270 performance monitor counter DLL. Once tn3prf.dll is loaded, it attempts to read registry keys that are used to define the counters that the service provides. Those particular registry keys (First Counter, First Help, Last Counter, Last Help) are not defined under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\TN3270\Performance, so the Event 702 message is logged.

The problem does not cause any functional problems related to the TN3270 Server or to Performance Monitor, it just results in the event message being logged.

If you want to resolve the problem so that the Event 702 message is not logged when starting Performance Monitor, you can do the following:

 

1. Open an Administrative Command Prompt.

2. Run the following command:

      lodctr “c:\Program Files\Microsoft Host Integration Server 2010\system\tn3perf.ini”

 

This command loads the TN3270 Performance Monitor counters which resolves the problem that leads to the event message.