NI DSC Connection to OPC Server Error on Deployment Computer

Updated Jan 24, 2023

Reported In

Software

  • LabVIEW
  • LabVIEW Datalogging and Supervisory Control Module
  • LabVIEW Application Builder Module
  • OPC Servers

Issue Details

  • I have developed a LabVIEW application that uses the  Labview Datalogging and Supervisory Control (DSC) Module.  It works on my development computer and is able to connect with the  NI OPC I/O Server without issue.  However, when I move this built application (EXE) to my deployment computer that has its own NI OPC Server, the application is not able to connect to the NI OPC Server on the deployment computer.  In my diagnostics log file, I see the following error Failed, HResult=0x80070005. Access is denied.
  • There is an OPC server running on the development PC. I have created OPC Client I/O Server in my LabVIEW project. On the development PC my application runs smoothly. However when transferring to the deployment PC, I have the OPC server running but I cannot install or add a LabVIEW OPC Client I/O server.

Solution

If you DSC stand-alone application can run without issue on your development computer but runs into issue connecting with the NI OPC Server on the deployment computer, be sure to check the below items as they are common issues that may cause this behavior:
  • The full path to the OPC server needs to be the same on the development computer as well as the deployment computer.  This is important if we are using the local OPC Server on the deployment computer and we are not programmatically setting different OPC Server paths for EXE versus LabVIEW Development environment.
  • If the OPC server is hosted locally on both computers, make sure that the Machine field has localhost typed in as the input and that the Browse dropdown has Machine selected. 
  • Make sure your NI OPC Server is licensed properly on the deployment computer.  You can check for proper licensing using NI License Manager.
  • Make sure that your deployment computer has the proper DSC Run-Time System installed and licensed or the full DSC development module installed and licensed.
  • Check the Enable diagnostics box in the Configure OPC Client I/O Server window under the Diagnostics tab.  Look through the log to see if there are any errors that are logged and that could help you narrow down the root cause.