Skip to main content

This article explains why a “Fail to open file: ncg.ops” error occurs in a Net Express project at link time, and what to do when this happens.

Problem:

A “Fail to open file: ncg.ops” error occurs when rebuilding a Net Express project. The Output window shows that the error occurs when Net Express invokes the CBLLINK command to link the program.

Resolution:

This problem occurs when the environment variable COBDIR is overridden in the project. Net Express uses COBDIR to find its own run-time files, so users have to be cautious when setting this environment variable in Net Express.

Environment variables can be set in Net Express from the Project Properties under the IDE environment.

The best practice is always to append a value to the existing value of COBDIR that can be represented by %COBDIR%. If users wish to append X:\\DIR to COBDIR, they should set COBDIR with the value:

%COBDIR%;X:\\DIR

Incident Number: 2278384

Old KB# 14339