From Friday, January 17th 11 PM CDT (January 18th 5 AM UTC) through Saturday, January 18th 11:30 AM CDT (January 18th 5:30 PM UTC), ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Application Webservice not working since LV2021(64bit) / LV2020(64bit) was perfect

Solved!
Go to solution

Dear Community

 

I am facing a fundamental problem since I build my big application in LV2021.

 

I have included a webservice in my application and build it the last "years" with LV2020(64-bit) 

After creating the installer and installing it to a clean PC everything worked fine till LV2021(64bit). The "niembeddedws.conf" was read during launch and the application was controlable via the set TCP port 8002.

 

Now when the same application is build in LV2021(64bit) all seems to be fine after installation but the webservice is not running. (no listening port 8002 is there)

It is not a problem of the firewall because it is completly switched off.

 

After starting the Application i see in the windows event log that there is a problem (but i have no idea how to investigat or even to solve this issue)

There are three error messages all related to problems with the webservice.

 

Here are the entries:

appweb: Error: NI Auth Module -- Caught exception while loading NIAuth shared library

appweb: Error: Initialization for module niAuthModule failed

appweb: Error: Error with directive "LoadModule"
At line 14 in C:\Program Files\ioniTOF42\niembeddedws.conf

 

This is the niebeddedws.conf file (hope it is ok as text in thread, i am to sure if the attached file would have been better)

# Web server configuration file.
# Generated by LabVIEW 21.0.1f1
# 16.05.2022 14:36:07

#
# Global Directives
#
NI.AddLVRouteVars
TypesConfig "$LVSERVER_ROOT/mime.types"
LimitWorkers 10
LimitRequestBody 50000000
LoadModulePath $LVSERVER_ROOT/modules;$LVSERVER_ROOT/..
LoadModule niSessionManagerModule mod_nisessmgr
LoadModule niAuthModule mod_niauth
LoadModule EspModule mod_niesp
LoadModule WSRuntime mod_niws
Listen 8002

#
# Directives that apply to the default server
#
NI.ServerName "LV Embedded Web Server"
DocumentRoot "$LVSERVER_ROOT/ws_www"
InactivityTimeout 60
SetConnector netConnector
AddHandler niAuthHandler
AddHandler WSRuntime
AddHandler fileHandler ""
AddOutputFilter chunkFilter
LimitRequestForm 50000000
NI.WSRuntime.Configuration embedded "$LVSERVER_ROOT/services"
NI.WSRuntime.LoadWebService Ic_WebAPI.lvws

 

Hope anyboldy has a good idea as this topic is pending till LV2021(64bit) arrived and still here in LV2021SP1(64bit)

 

By the way, there are no webrelated NI services running and it is working with 2020. (no NISystemWebserver, and no NI ApplicationWebserver)

 

 

 

 

 

 

 

 

 

 

Gernot Hanel
IONICON Analytik Gesellschaft m.b.H.
0 Kudos
Message 1 of 16
(3,668 Views)

Hi Gernot,

 

I experiencing exactly the same issue. Did you find a workaround/solution?

 

Kind regards

 

Andrea Vaccaro

0 Kudos
Message 2 of 16
(3,589 Views)

Dear Andrea

 

I am sorry but I expected someone of NI is also looking onto the forum.

 

This seems not to be the case.

 

I still struggle with this problem and have had no step forward. The only thin I know if I install an older version of our software before I install the current version in parallel it works.

 

But this is no solution for this issue and I hope someone of NI is also reading this lines and states onto this issue.

 

If I have any updates I will post it here.

Gernot Hanel
IONICON Analytik Gesellschaft m.b.H.
0 Kudos
Message 3 of 16
(3,577 Views)

Dear Gernot,

 

thanks for your prompt answer. I have the same observations as you have about the workaround.

 

I have anyways opened an official support request. I will keep you posted about the outcome here.

 

Kind regards,

 

Andrea

 

Message 4 of 16
(3,572 Views)

Hi Gernot,

 

I managed to get this accepted as bug by NI with CAR number 2059713.

 

I am by now a CAR number champion: I got 4 accepted in 8 years. I don't know if I have to feel proud or just miserably unlucky 😂

 

Kind regards

 

Andrea

0 Kudos
Message 5 of 16
(3,530 Views)

Hi Andrea

 

Thank you for this update. Hope they will find the bug and fix ist soon.

 

Best

 

Gernot

Gernot Hanel
IONICON Analytik Gesellschaft m.b.H.
0 Kudos
Message