'MB initialization error, check codepage.ini file' starting Gen deployed application
search cancel

'MB initialization error, check codepage.ini file' starting Gen deployed application

book

Article ID: 374230

calendar_today

Updated On:

Products

Gen

Issue/Introduction

After copying a Gen 8.6 application from one Windows machine to another when try to start the deployed application receive the error:

'MB initialization error, check codepage.ini file'.

Environment

Gen 8.6 - Windows

Resolution

On the Windows deployment machine, set the IEFH environment variable to the Gen files runtime location that contains the codepage.ini file on this machine. 

The order in which the codepage.ini is found is as follows:

1.  The current working directory that is returned by the function getcwd(), (Get the current working directory). Typically, this is the directory containing the application executables.

2.  The location defined by the IEFH environment variable.

3.  The location defined by the Genxx environment variable, where xx is the Gen release. This variable reference makes the assumption that Genxx is installed on the machine. as the environment variable with append the 'Gen'  directory to the setting.  For example, setting 'Gen86' environment variable as follows 'Gen86=C:\Program Files (x86)\CA\Gen86\', will result in looking for the codepage.ini file within the location 'C:\Program Files (x86)\CA\Gen86\Gen'.