TypeLoadException after CAB install

C

Chris Dailey

I am working on a VB.Net program for HHP's Dolphin 9550 scanner based on
the Pocket PC OS. When I run the program from VS it deploys and runs
just fine. When I copy out the CAB files into the AutoInstall directory
and perform a cold boot it installs everything just fine, but the
program takes a long time to launch (about 2 minutes) and I get a
TypeLoadException when I click on a button to open another form.

Here is the output from the VS deployment:

------ Build started: Project: PPC USMLauncher, Configuration: Release
Pocket PC ------

Preparing resources...
Updating references...
Performing main compilation...
Building satellite assemblies...
Visual Studio is ready to deploy PPC USMLauncher



------ Deploy started: Project: PPC USMLauncher, Configuration: Release
Pocket PC ------

Deploying to Pocket PC Device using TCP Connect Transport
Connected to Pocket PC Device (Pocket PC) running on ARMV4.
Copying files from 'C:\Documents and Settings\chrisd\My Documents\Visual
Studio Projects\PPC USMLauncher\bin\Release' to '\Program Files\PPC
USMLauncher'
Copying PPC USMLauncher.exe
Files in the package 'netcf.all.wce4.armv4.cab' are more recent on the
device than on the development computer. Consider upgrading to the
latest version. Files affected are:
Microsoft.windowsce.forms.dll
Microsoft.visualbasic.dll
System.data.dll
System.net.irda.dll
System.xml.dll
System.windows.forms.datagrid.dll
System.windows.forms.dll
System.web.services.dll
System.drawing.dll
System.dll
Mscorlib.dll
Netcfagl1_0.dll
Cgacutil.exe
Mscoree1_0.dll
Mscoree.dll
Copying System_SR_enu.cab
Launching device installation of 'System_SR_enu.cab'. Please check
device screen for further instructions..
Copying OpenNETCF.SDF.ppc3.ARMV4.CAB
Launching device installation of 'OpenNETCF.SDF.ppc3.ARMV4.CAB'. Please
check device screen for further instructions.....
Copying files from 'C:\Program Files\Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\v1.0.5000\Windows CE\' to '\Program Files\PPC
USMLauncher'
Copying HHP.DataCollection.Common.dll



---------------------- Done ----------------------

Build: 1 succeeded, 0 failed, 0 skipped
Deploy: 1 succeeded, 0 failed, 0 skipped


Launching Application


I am installing the following CAB's:
System_SR_enu.cab
OpenNETCF.SDF.ppc3.ARMV4.CAB
MyProgram.CAB

Any Ideas?

Thanks,
Chris
 
G

Guest

Hi Chris,

I am experiencing a very similar problem to yours. I originally thought the
solution was to adjust the VersionMin and VersionMax number sin the CAB inf
file under the [CEDevice] tag. It seemed to work for a time but the problem
came back. Have you found a solution to this challenge.

Cheers,
Ollie
 

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