Error -2147024891 During Deployment of Shared Variable

Updated Nov 20, 2020

Reported In

Software

  • LabVIEW
  • LabVIEW Real-Time Module

Issue Details

When deploying a library that includes network-published shared variables, I'm getting the following error:

Deployment failed (error: -2147024891, LabVIEW: (Hex 0x80070005) Access denied. This error can occur if you attempt to write a single writer shared variable that is already connected to a subscriber with write access. Ensure that you connect only one target with write access to this shared variable at a time.).
Deployment completed with errors.


The following image shows the message I'm seeing:

Solution

Check the variable is configurated as Single Writer: this error can occur if you attempt to write a single writer shared variable that is already connected to a subscriber with write access. Ensure that you connect only one target with write access to this shared Variable at a time.


If the previous step don't solve the issue, it is possible that your software stack is corrupted. You can perform a LabVIEW repair as suggested in Repair Software In NI Package Manager (NIPM).