PRB: "InitRegistry FAILED" Error Message During the Build Process (312061)
The information in this article applies to:
- Microsoft Windows CE Platform Builder 3.0, when used with:
- Microsoft Windows CE .NET Operating System
- Microsoft Windows CE Platform Builder 4.0, when used with:
- Microsoft Windows CE .NET Operating System
This article was previously published under Q312061 SYMPTOMS
In Platform Builder 3.0, you may receive the following error message in the build output during the build process:
[...] File C:\longpath\default.fdf not found. GetLastError=00000002h
In Platform Builder 4.0, you may receive the following error message in the build output during the build process:
regcomp: Error: InitRegistry FAILED on or near line xxxx of C:\longpath\reginit.ini.
CAUSE
These errors occur because of problems in the .reg files for the platform that is being built.
RESOLUTION
To resolve this problem, you must correct the errors in the .reg files. To do this, follow these steps:
- Locate the line number at which the error is reported. In Platform Builder 4.0, the line number is included in the error message.
If you are using Platform Builder 3.0, search the build output for a line that is similar to the following:
InitRegistry FAILED within a few lines of line xxxx.
where xxxx is the line number. - Open the Reginit.ini file from the build release directory.
- Click Open Build Release Directory on the Build menu to open a command prompt in the build release directory.
- Locate the line that is noted in the first step.
- Fix the associated line in the appropriate .reg file.
NOTE: You must fix the error in the .reg file, not the Reginit.ini file.
MORE INFORMATION
The Default.fdf file is created by combining and by parsing the various .reg files (such as the Common.reg, the Platform.reg, and the Project.reg files) that are part of the platform. If there is an error in one of the component .reg files, the Default.fdf file is not created.
Modification Type: | Minor | Last Reviewed: | 8/18/2005 |
---|
Keywords: | kbprb KB312061 |
---|
|