NOTICE: Our Community is moving. Get more information.
I have deployed a Dialog System application to my server, however when I run the application from a client PC the following error appears:
How can I avoid this?
The solutions offered here assume that the COBOL Server and application deployment have followed the guidelines in the following article:
Network deployment of Visual COBOL 2.3 native applications
Set the environment variable COBDATA to point to the folder where the screenset is located.
There are two options that can be applied in order to make sure that the screenset is found.
When building the application, add an Application.config file and add the detail for COBDATA as shown:
(Note: the Value \\10.0.0.21\Appdir represents the application deployment folder (shared) on the server)
Set the environment variable COBDATA on the client PC to point to the folder where the screenset is located on the server,
typically this can be set in a batch file that would the launch the application:
rem *rem * Set COBDATA to find the screensetrem * Use UNC with server IP address and share namerem *SET COBDATA=\\10.0.0.21\Appdir
rem * now set path etc...... and launch the application
rem *rem * Set COBDATA to find the screensetrem * Use UNC with server name and share namerem *SET COBDATA=\\MyServer\Appdir