Solution
This error occurs when publishing a Web Service that already exists. Follow the steps below to resolve the error:
1. Ensure that only one Web Service with this name is published.
- Change the name of the Web Service from the LabVIEW project and try re-publishing it.
- If publishing to the Application Web Server:
- Navigate to http://localhost:3582/web-config/web-services in a browser.
- From here, unpublish any Web Services with the same name as the erroring Web Service. Select a Web Service and click Unpublish from the top, as shown below.
- If publishing on the Debug Server:
- Right-click the Web Service and select Application Web Server >> Stop (Debug Server).
- If publishing on the NI Web Server, move to the next step.

2. Manually force the Web Service to stop.
- From the Windows start menu, search for "Command Prompt". Right-click the application and select Run as administrator.
- Set the current directory to C:\Program Files (x86)\National Instruments\Shared\LabVIEW Run-Time\20XX\LVWS where 20XX represents the version of LabVIEW Run-Time being used. The full command is:
cd "C:\Program Files (x86)\National Instruments\Shared\LabVIEW Run-Time\2020\LVWS"
- Enter the command below to stop the Web Service. Note: <Web Service Name> represents the name of your Web Service.
NIWebServicePublisher.exe "<Web Service name>" /Embedded /uninstall3. If the Web Service has been built into a LabVIEW executable, ensure that Windows has granted permissions to
NIWebServicePublisher.exe.
- When the executable is launched, a Windows pop-up should appear asking to grant permissions to NIWebServicePublisher.exe. If this does not appear, follow the steps below:
- Navigate to C:\Program Files (x86)\National Instruments\Shared\LabVIEW Run-Time\20XX\LVWS on the host PC, where 20XX represents the version of LabVIEW Run-Time being used.
- Right-click NIWebServicePublisher.exe and select Run as administrator.
- When the pop-up appears, select Show more details and then Change when these notifications appear. Configure the notifications to always appear.
- If the pop-up still does not appear, open User Account Control Settings in Windows. Change the option to Always notify.
- Re-launch the executable, and verify that the Windows pop-up appears. Grant permission to NIWebServicePublisher.exe.