ILMerge'd exe fails - can't find CF

T

Tim

I'm using the lates ILMerge (2.0.7.112) and have built a merged executable,
but when I try to launch it in the Pocket PC, I get this error even after
re-installing CF 2.0 (and doing a soft reset)

..NET CF Initialization Error,
The application failed to load required components.
If the .NET CF is installed on a storage card,
please ensure that this card is in place and launch the application again.
If this fails, a re installation of the .NET CF is recommended.

Any ideas?
Tim
 
G

Guest

I run ILMerge with "log" option and got this log file:
========================================
Running on Microsoft (R) .NET Framework v2.0.50727
mscorlib.dll version = 2.0.0.0
The list of input assemblies is:
T:\MobileBin\NgsSrvr.exe
T:\MobileBin\Ngs.PdaTypes.dll
T:\MobileBin\Elbit.Bsw.MoblieStubs.dll
T:\MobileBin\Ngs.PdaClnt.dll
T:\MobileBin\Ngs.PdaNmea.dll
T:\MobileBin\Ngs.PdaPluginTypes.dll
T:\MobileBin\Ngs.PdaSim.dll
T:\MobileBin\Ngs.PdaSrvr.dll
Trying to read assembly from the file 'T:\MobileBin\NgsSrvr.exe'.
Successfully read in assembly.
There were no errors reported in NgsSrvr's metadata.
Trying to read assembly from the file 'T:\MobileBin\Ngs.PdaTypes.dll'.
Successfully read in assembly.
There were no errors reported in Ngs.PdaTypes's metadata.
Trying to read assembly from the file
'T:\MobileBin\Elbit.Bsw.MoblieStubs.dll'.
Successfully read in assembly.
There were no errors reported in Elbit.Bsw.MoblieStubs's metadata.
Trying to read assembly from the file 'T:\MobileBin\Ngs.PdaClnt.dll'.
Successfully read in assembly.
There were no errors reported in Ngs.PdaClnt's metadata.
Trying to read assembly from the file 'T:\MobileBin\Ngs.PdaNmea.dll'.
Successfully read in assembly.
There were no errors reported in Ngs.PdaNmea's metadata.
Trying to read assembly from the file 'T:\MobileBin\Ngs.PdaPluginTypes.dll'.
Successfully read in assembly.
There were no errors reported in Ngs.PdaPluginTypes's metadata.
Trying to read assembly from the file 'T:\MobileBin\Ngs.PdaSim.dll'.
Successfully read in assembly.
There were no errors reported in Ngs.PdaSim's metadata.
Trying to read assembly from the file 'T:\MobileBin\Ngs.PdaSrvr.dll'.
Successfully read in assembly.
There were no errors reported in Ngs.PdaSrvr's metadata.
Checking to see that all of the input assemblies have a compatible PeKind.
NgsSrvr.PeKind = ILonly
Ngs.PdaTypes.PeKind = ILonly
Elbit.Bsw.MoblieStubs.PeKind = ILonly
Ngs.PdaClnt.PeKind = ILonly
Ngs.PdaNmea.PeKind = ILonly
Ngs.PdaPluginTypes.PeKind = ILonly
Ngs.PdaSim.PeKind = ILonly
Ngs.PdaSrvr.PeKind = ILonly
All input assemblies have a compatible PeKind value.
AssemblyResolver: Assembly 'NgsSrvr' is referencing assembly 'System'.
AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'System'.
Resolved assembly reference 'System' to 'T:\MobileBin\System.dll'. (Used
referencing Module's directory.)
AssemblyResolver: Assembly 'NgsSrvr' is referencing assembly
'Microsoft.WindowsCE.Forms'.
AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly
'Microsoft.WindowsCE.Forms'.
Resolved assembly reference 'Microsoft.WindowsCE.Forms' to
'T:\MobileBin\Microsoft.WindowsCE.Forms.dll'. (Used referencing Module's
directory.)
AssemblyResolver: Assembly 'NgsSrvr' is referencing assembly
'System.Windows.Forms'.
AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly
'System.Windows.Forms'.
Resolved assembly reference 'System.Windows.Forms' to
'T:\MobileBin\System.Windows.Forms.dll'. (Used referencing Module's
directory.)
Merging assembly 'NgsSrvr' into target assembly.
AssemblyResolver: Assembly 'NgsSrvr' is referencing assembly 'System.Drawing'.
AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly
'System.Drawing'.
Resolved assembly reference 'System.Drawing' to
'T:\MobileBin\System.Drawing.dll'. (Used referencing Module's directory.)
Merging assembly 'Ngs.PdaTypes' into target assembly.
AssemblyResolver: Assembly 'Ngs.PdaTypes' is referencing assembly
'System.Xml'.
AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly
'System.Xml'.
Resolved assembly reference 'System.Xml' to 'T:\MobileBin\System.Xml.dll'.
(Used referencing Module's directory.)
Merging assembly 'Elbit.Bsw.MoblieStubs' into target assembly.
Merging assembly 'Ngs.PdaClnt' into target assembly.
Merging assembly 'Ngs.PdaNmea' into target assembly.
Merging assembly 'Ngs.PdaPluginTypes' into target assembly.
Merging assembly 'Ngs.PdaSim' into target assembly.
Merging assembly 'Ngs.PdaSrvr' into target assembly.
Merging assembly-level attributes from assembly 'NgsSrvr' into target
assembly.
Copying 5 Win32 Resources from assembly 'NgsSrvr' into target assembly.
Transferring entry point 'NgsSrvr.Program.Main' from assembly 'NgsSrvr' to
assembly 'NgsSrvrMerge'.
There were no errors reported in the target assembly's metadata.
ILMerge: Writing target assembly 'T:\MobileBin\NgsSrvrMerge.exe'.
Location for referenced module 'coredll.dll' is ''
Location for referenced module 'aygshell.dll' is ''
Location for referenced module 'kernel32.dll' is ''
Location for referenced module 'kernel32' is ''
Location for referenced assembly 'System.Windows.Forms' is
'T:\MobileBin\System.Windows.Forms.dll'
There were no errors reported in System.Windows.Forms's metadata.
Location for referenced assembly 'mscorlib' is
'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll'
There were no errors reported in mscorlib's metadata.
Location for referenced assembly 'System' is 'T:\MobileBin\System.dll'
There were no errors reported in System's metadata.
Location for referenced assembly 'System.Drawing' is
'T:\MobileBin\System.Drawing.dll'
There were no errors reported in System.Drawing's metadata.
Location for referenced assembly 'Microsoft.WindowsCE.Forms' is
'T:\MobileBin\Microsoft.WindowsCE.Forms.dll'
There were no errors reported in Microsoft.WindowsCE.Forms's metadata.
Location for referenced assembly 'System.Xml' is 'T:\MobileBin\System.Xml.dll'
There were no errors reported in System.Xml's metadata.
ILMerge: Done.

========================================
I can find here 2 problems:
1. the first line: "Running on Microsoft (R) .NET Framework v2.0.50727" and
not CF 2.0
2. the line "Location for referenced assembly 'mscorlib' is
'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll'" - this is the
pc dll and not the CF 2.0
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top