I have ported a Windows CE solution from 1.1 to 3.5 (I thought, anyway). I deployed the app from VS 2008 to "USA Windows Mobile 5.0 Pocket PC R2 Emulator", on which "device" my app runs. However, when I attempt to put the app through its paces (exercise its features and functions), I get: "Exception: File or assembly name 'System.Core,Version=3.5.0.0 ..., or one of its dependencies, was not found"
I see that File Explorer has a ".NET CF 2.0" folder, but nothing for ".NET CF 3.5" - yet the app, which has been upgraded to 3.5, was deployed to the device (at least enough so for it to start up)...am I correct in assuming there shuld be such a folder (.NET 3.5)? If not, where should System.Core version 3.5 be located?
Most importantly, how can I get it there, or if it is already there, how can I get it to "come out of hiding"?
Wishing to follow Gene's suggestion, I selected File > Configure... from the emulator. This is what I see, though (no way to mount the directory as an SD card, AFAICT):
Maybe this is masking the real problem; in the Output windows, I see:
A first chance exception of type 'System.Data.SqlServerCe.SqlCeException' occurred in System.Data.SqlServerCe.dll
(many times) and:
A first chance exception of type 'System.MissingMethodException' occurred in System.Windows.Forms.dll
To get the latest version of the CF installed on the emulator, go to the Project Properties, select the Devices tab, and just check the box as shown below:
Whenever it comes time to deploy your application, you will need this CAB file on your device.
The CAB file is located here: C:\Program Files (x86)\Microsoft.NET\SDK\CompactFramework\v3.5\WindowsCE
Personally, I use SQL Client
on my devices instead of SQL CE
. To find the CAB files for it, search the Program Files (x86)
folder for the one you need. The screenshot below shows sqlce.wce5.armv4i.CAB
.
I hope that wasn't too many pictures.
Let me know if you run into any snags.