Microsoft KB Archive/312061

= PRB: &quot;InitRegistry FAILED&quot; Error Message During the Build Process =

Article ID: 312061

Article Last Modified on 2/12/2007

-

APPLIES TO


 * Microsoft Encarta Reference Suite 2001, when used with:
 * Microsoft Windows CE .NET 4.2
 * Microsoft Windows CE Platform Builder 4.0, when used with:
 * Microsoft Windows CE .NET 4.2

-



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:\ \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  of C:\ \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  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.</ol>

NOTE: You must fix the error in the .reg file, not the Reginit.ini file.

<div class="moreinformation_section">

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.

Keywords: kbprb KB312061

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.