Servermain.exe Causes Bad Tags in NI OPC Server

Updated Mar 20, 2024

Reported In

Software

  • OPC Servers
  • LabVIEW

Issue Details

Previously, I was using the NI OPC Server 2010 version, and it was working fine. However, when I upgraded and installed the NI OPC Server 2012 version, the quality of the tags was labeled as “Bad” or “Bad (out of service)”.

When I close or terminate the servermain.exe process in Windows, the quality of the tags becomes “Good” and I can read the tags in LabVIEW. However, after a few minutes, servermain.exe starts running again and the issue persists. It seems like this issue persists if servermain.exe is running. Is there any explanation for this issue?

Solution

This issue is caused by having two versions of the NI OPC Server installed on a host PC. Servermain.exe is installed and is only used and dependent on NI OPC Server 2010 versions.

Since you have updated to a newer version on the host PC, you should uninstall the NI OPC Server 2010 version, which will remove servermain.exe.