G
Guest
We have been getting TypeLoadExceptions under the Compact Framework Service Pack 2. Before, when we got one of these, we didn't think too much of it - we reinstalled from a CAB file, and it all worked. We blamed a corrupt DLL or something.
But now it has returned. When I deploy my project through VS.NET 2003 (Pro), onto one of these Panasonics, we get a TypeLoadException thrown. This occurs before the Sub Main is called, so it does not break into the debugger.
At first, it was being thrown in FieldSoftware.PrinterCE, but, having removed all references to that from the project, it is being thrown in System.Drawing.Icon
It appears that if I install from a CAB file (built with VS's BuildCab.BAT) then it works perfectly, but deploying through the debugger, to a freshly hardware-reset Panasonic or emulator - it crashes.
Some details:
the original exception -
Could not Load type
FieldSoftware.PrinterCE_NetCF.PrinterCE from assembly PrinterCE.NetCF, Version 1.0.4.0, Culture=neutral, PublicKeyToken=null.
the new exception -
Could not load type System.Drawing.Icon from assembly System.Drawing, Version 1.0.5000.0, Culture=neutral, PublicKeyToken=969DB8053D3322AC.
both the emulator and the panasonics are running PPC2002, with SP2. VS.NET is version 7.1.3088, running on a Win2000 PC, ActiveSync 3.7.1
I am open to all ideas...including voodoo dances at the moment.
email - lawrence at telecetera . co . uk
But now it has returned. When I deploy my project through VS.NET 2003 (Pro), onto one of these Panasonics, we get a TypeLoadException thrown. This occurs before the Sub Main is called, so it does not break into the debugger.
At first, it was being thrown in FieldSoftware.PrinterCE, but, having removed all references to that from the project, it is being thrown in System.Drawing.Icon
It appears that if I install from a CAB file (built with VS's BuildCab.BAT) then it works perfectly, but deploying through the debugger, to a freshly hardware-reset Panasonic or emulator - it crashes.
Some details:
the original exception -
Could not Load type
FieldSoftware.PrinterCE_NetCF.PrinterCE from assembly PrinterCE.NetCF, Version 1.0.4.0, Culture=neutral, PublicKeyToken=null.
the new exception -
Could not load type System.Drawing.Icon from assembly System.Drawing, Version 1.0.5000.0, Culture=neutral, PublicKeyToken=969DB8053D3322AC.
both the emulator and the panasonics are running PPC2002, with SP2. VS.NET is version 7.1.3088, running on a Win2000 PC, ActiveSync 3.7.1
I am open to all ideas...including voodoo dances at the moment.
email - lawrence at telecetera . co . uk