Error -252540: Webapp Content Does Not Exist in SystemLink

Updated Feb 8, 2024

Reported In

Software

  • SystemLink Server
  • G Web Development Software

Issue Details

  • I am trying to import a Web Application on my SystemLink Server, but after I upload my package, I see error -252540.
  • I have built a Web VI in G Web Development Software and need to upload it to SystemLink. The package upload fails because Webapp content does not exist.
  • After building a package for my Web VI and importing it into SystemLink, I see the below error. What is causing this?
webapp error.PNG

Solution

This error is caused by improper package settings in G Web Development Software. It can be resolved by building the Web Application, changing the Output type of the package, or adding included files. Follow the relevant sections below for instructions.

 

Ensuring That the Web Application Has Been Built

  1. From the Project Files tab, double click your .gcomp file.
  2. In the Document tab on the right-hand side, enter values for the Company, Product, Version and Description field.
  3. In the same tab, make a note of the Output Directory listed at the bottom. This is where the application will be built.
  4. In the .gcomp window, click the hammer icon and select Build.
Build Web App.PNG



Configuring Included Files and Output Type

gcomp rebuild output.PNG
  • If you wish to include the .gcomp Web VI file as a Source Output type, you must include all of your Web Application build files with the package.
    • Navigate to the output directory of your Web Application and make a note of all subfolders and files. Every file in this directory must be included in your package.
    • All G Web Development applications will consist of:
      • HTML file (usually index.html): this is the web page where the Web VI runs.
      • via.txt file: this is the VIA code built from the Web VI diagram. It executes in VIREO and must not be edited.
      • ni-webvi-resource-v0 folder: this is a folder created to organize other files in the web application.
    • You can include these folders and files in your G Web Development project as follows:
      1. In the Project Files window, right-click the .gwebproject and select Add folder.
      2. Rename each folder so that your G Web Development project has the same hierarchy as your Web Application build directory.
      3. For each folder, right-click and select Add File to include files from your Web Application build directory.
      4. Each file can be dragged into the Files section of your G Web Development package.
        • Note: remember to change the Destination column for each file so that the Web Application file hierarchy is maintained.
        • Below is an example of how the Files section may appear after including all build files.

Included Files G Web Package'.PNG