G Web Development Software

cancel
Showing results for 
Search instead for 
Did you mean: 

Web App Import Error with webvihost

Solved!
Go to solution

The G Web App I've been working on will build a package causes an error "the .nipkg file is not valid" when the .nipkg file is imported into the NI Web Server via the webvihost app.  The lvdist is configured for an Output Type of Package, the Build Target is set to Default Web Server, and the package build does succeed without warnings or errors.  In the WebApp.gcomp file, the main gviweb is set as the top level vi, with other sub-vi's (gviweb files) included, along with some images (png files) and types (gtype files).  The Web App uses the File/FileTasks/Uppy.gcomp components that were provided by NI elsewhere.  The size of the generated nipkg file is:

 

2.37 MB (2,490,368 bytes)

 

I've used a prototype with these File/FileTasks/Uppyg comp's and had it import successfully with webvihost, and run.  Is there any more visibility into the cause of this import error?  I attached a screenshot of the error.  The G Web version I'm using is:

 

2022 Q3

Build number 9.5.0.49854

0 Kudos
Message 1 of 4
(1,674 Views)
Solution
Accepted by johnsmith2022

What's the name of the main webvi? It only accepts a handful of names. I swear there was a KB about it but it's eluding me at the moment.

~ G stands for Fun ~
Helping pave the path to long-term living and thriving in space.
Message 2 of 4
(1,653 Views)

Thank you, that was it.  I changed the name to the name I had for the prototype that worked (index.gviweb) and it loaded and worked.  It would be nice if the error was a little clearer.  Thank you very much for responding!

0 Kudos
Message 3 of 4
(1,647 Views)

It sure would be 😉

~ G stands for Fun ~
Helping pave the path to long-term living and thriving in space.
0 Kudos
Message 4 of 4
(1,643 Views)