LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 42 when building application or publishing web service

Running 2018 and 2018 SP1.

 

Attempting to build a LabVIEW application that includes a web service.  During the initialization phase, LabVIEW visually blacks out (see image), and the build stops with the error:

 

An error occurred while saving the following file:

C:\Program Files\National Instruments\LabVIEW 2018\vi.lib\registry\registry.llb\Registry refnum.ctl

 

No more details provided.

 

Found that if I disabled the Web Service from the build (uncheck it from the Web Services page in Build Properties), the build can progress past this stage.

 

Tried publishing the web service from LV.  LabVIEW blacks out again, and I get more details in a pop-up:

 

An error occurred while saving the following file:

C:\Program Files\National Instruments\LabVIEW 2018\vi.lib\registry\registry.llb\Registry refnum.ctl


<Call Chain>Error 42 occurred at AB_Source_VI.lvclass:Close_Reference.vi -> AB_Build.lvclass:Save.vi -> AB_Build.lvclass:Copy_Files.vi -> AB_Build.lvclass:Build.vi -> AB_RESTfulWebService.lvclass:Build.vi -> AB_API Do Two Step Build.vi:4020001 -> AB_API Build.vi:4700001 -> NI_AB_API_Build.lvclass:Build.vi -> NI_AB_API_RESTful.lvclass:Build.vi -> NI Web Service Build.lvlib:Build Web Service.vi:3720001 -> NI Web Service Build.lvlib:Create_Rest.vi -> NI Web Service Build.lvlib:Create_Rest.vi.ProxyCaller

Possible reason(s):

LabVIEW: (Hex 0x2A) Generic error.

 

Previous versions of our application have built successfully in the past.  In those past occasions, the windows also appear to "black out," but the application had built successfully.

 

1. How to resolve this error and build successfully?  Is the web service causing this?

2. Why does LabVIEW appear to "black out?"  Is there a way to avoid this?

 

0 Kudos
Message 1 of 2
(612 Views)

Image of LabVIEW appearing to "black out":

 

mstsc_l3FCJbq8sj.png

0 Kudos
Message 2 of 2
(611 Views)