Receive Reason Code 126 or Reason Code 127 when attempting to run a Gen application

Document ID : KB000026329
Last Modified Date : 14/02/2018
Show Technical Document Details

Symptoms:

When launching a Gen application, I receive runtime error:
INTERNAL FATAL ERROR. Failed to Load DLL, Reason Code 127.

 

Cause:

The error RC=126 or RC=127 indicate that a needed runtime DLL file may be missing or cannot be found. If running from a UNIX environment, the problem may be caused by permission settings on the referenced runtime DLL's. This typically occurs after an application is deployed either manually or using a .msi file.

 

Resolution:

1.    Verify your environment variables are correct and without syntax errors. (PATH, LIB, INCLUDE, etc...). If UNIX, also  verify these locations and runtime files have the proper permissions.

2.    Verify that the cascade library has been generated and installed and that it is complete based on your entire data structure list.

3.     Open the offending <loadmodule>.dll in dependency walker and verify the runtime DLL's needed by the loadmodule exist and can be found by the <loadmodule>.dll.