LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to start NI Application Web Server - Error 1067

Solved!
Go to solution

I am unable to start the NI Application Web Server service (LV2010 SP1 - Win7 x64 SP1). Here's what I know...

  • I go into windows services and scroll down to NI Application Web Server and attempt to start the service
    • Service begins to start, then crashes with “Windows could not start the NI Application Web Server service on Local Computer. Error 1067: The process terminated unexpectedly.
  • I browse to C:\ProgramData\National Instruments\WebServices\aws and delete everything in that folder, then try to start the service again
    • The folder begins to populate with web services that I have deployed in the past. As soon as it gets to a particular one, the service fails to launch. I’m guessing this deployed web service is corrupt, but I have no way to prevent it from re-deploying when the web server starts.
  • If it matters, the 64-bit web server service starts, but that doesn’t help me since I’m trying to deploy a 32-bit web service.
  • Normally I would use the Distributed System Manager to un-deploy a web service, but I can’t do that in this case because the web server is not running.

All this leads me to the big question…When a web service is deployed, the web server somehow remembers it and attempts to re-deploy the service each time it launches. I want to wipe out the list of previously deployed web services so that I can start the web server service without it loading any web services. Where do I do this? I have dug a bit in the registry and browsed through the ProgramData folder to no avail. Any ideas?

 

Thanks,

Toby

0 Kudos
Message 1 of 6
(7,888 Views)
Solution
Accepted by topic author TobyD

When deploying, the webservice .lvws file is stored in a the following location:

32-bit webservices on 64-bit win 7/win vista:
C:\Windows\SysWOW64\config\systemprofile\Documents\LabVIEW Data\WebServices\Standalone

64-bit webservices on 64-bit win 7/win vista:
C:\Windows\system32\config\systemprofile\Documents\LabVIEW Data\WebServices\Standalone

32-bit webservices on 32-bit win 7/win vista:
C:\Windows\system32\config\systemprofile\Documents\LabVIEW Data\WebServices\Standalone

Win XP:
C:\Documents and Settings\LocalService\My Documents\LabVIEW Data\WebServices\Standalone

If you do not want your web service to be loaded after subsequent reboots, you can clean up the .lvws files from these locations.


If you want your web service to be loaded only once after you deploy, you can uncheck the "Deploy as standalone Web Service" checkbox in the "Service Settings" tab of the web services properties dialog. You will need to rebuild your web service after making this change. This will make sure that the web service is NOT built as a standalone service, meaning that it will cease to exist once the instance of the process that deploys the web service exits (LabVIEW). Please make sure that you clean up your existing standalone web service completely before trying to deploy a web service with the name that is not standalone.

James
Senior Software Engineer
Web Technologies
LabVIEW R&D
Message 2 of 6
(7,878 Views)

Thanks James! That is exactly what I was looking for. I was able to remove the offending lvws file and the Web Server Service started as expected. Also, great information about the "Deploy as standalone Web Service" switch. The documentation on what that means could use some clarification (as could a lot of the documentation for the web services stuff Smiley Wink)

 

-Toby

0 Kudos
Message 3 of 6
(7,874 Views)

I tried all those places and couldn't find the .lvws file.  Is there somewhere else it could be?

0 Kudos
Message 4 of 6
(7,204 Views)

What version of LabVIEW are you using?

0 Kudos
Message 5 of 6
(7,200 Views)

Likewise I also failed to find the *.lvws files in the appropriate folder for windows 7.

 

On my WinXP computer, the *.lvws files are where they belong according to your post, "C:\Documents and Settings\LocalService\My Documents\LabVIEW Data\WebServices\Standalone"

 

On my Win7 computer, 32-bit webservices on 32-bit win 7, the folder is empty (C:\Windows\system32\config\systemprofile\Documents\LabVIEW Data\WebServices\Standalone).  The webservices on that computer work fine, with the exception that I cannot find where the stand alone versions of the *.lvws files are stored.  I tried deleting the *.lvws files from C:\ProgramData\National Instruments\WebServices\aws, however they are restored on reboot.  I'm stumped as to where they are being restored from.  The webservices were installed with an application installer and the LV IDE is not installed.  LV version 2012.

 

Any suggestions appreciated.

 

Martin

0 Kudos
Message 6 of 6
(7,093 Views)