Could Not Compile Custom Handler Error Message
Copyright © 2019 EarthSoft, Inc • Modified: 12 Nov 2019
Affected Software/Reports/DLL(s): EDP
Affected Software Version: N/A
Symptoms: When opening a format, the following error may occur:
Unable to read Format File: C:\Program Files\EarthSoft\EQuIS\Formats\EarthSoft\[FORMAT].xsd
Could not compile custom handler: The following error(s) occurred while compiling custom handler:
vbc : Fatal(0,0) : error BC2000: compiler initialization failed unexpectedly: Project already has a
reference to assembly [FORMAT]. A second reference to 'C:\Program Files\EarthSoft\EQuIS\Formats\[FORMAT].dll cannot be added.
Cause/Details: EDP will initially look in the directory with the format file ([FORMAT].xsd) for the [FORMAT].dll file. If this does not exist, it will next look in the user's Temp directory for a [FORMAT].dll. If the *.dll is not found in either directory, EDP will attempt to compile the *.dll using the custom handler (*.vb/*.vbe) in the same folder as the EDP format. This error typically occurs when:
1.EDP is unable to use the current [FORMAT].dll, or
2.EDP has trouble compiling it due to file system constraints.
Resolution/Workaround: To fix this error, complete the following procedure:
1.With EQuIS Professional closed, browse to the current user's temp directory in Windows (%temp%).
2.Rename or delete the [FORMAT].dll found in this directory (if it exists), which matches the format name mentioned in the above error when opened.
3.Open Standalone EDP (EDP.exe or EDP_x86.exe) and attempt to load the format again.
4.Check that the [FORMAT].dll file then appears in the Temp directory in Windows (%temp%).
5.The file may then be copied into the same directory as the format file.
6.Open the format in either Standalone EDP or Professional EDP.
7.These steps can be repeated for each format that receives the error message.
If the *.dll file is included in the download package for the format, the format may be re-downloaded and the *.dll placed in the appropriate directory.