Cannot run a CF 2.0 Beta application on a real device

A

aquinas

Just got the Visual Studio 2005 Beta because I was especially anxious
to make use of the new Compact Framework 2.0.

Tried running a hello world program on my Pocket PC (Axim X50 to be
precise). I have no trouble running Compact Framework 1.0 applications
on the device. When I try to run a 2.0 application on there it says
that it is installing the .NET CF 2.0. Great, that seems good. Then I
get an hourglass like the program is about to start, then Visual Studio
says "Unable to start debugging. Unable to start program (name of my
program). If I try to deploy again, the pocket pc says that the .NET CF
2.0 framework is already installed, would I like to reinstall? It then
asks if I want to do this EVERYTIME I try to deploy. Also, the program
does get copied over to the pocket pc, but when I try clicking on it to
run it, an hourglass comes up like it is going to work, but then the
hourglass goes away and nothing happens (just like when running from
VS). The program runs fine on the emulator. Anyone have ANY
suggestions?
 
I

Ilya Tumanov [MS]

There's an issue with files time stamp on some newer devices.
Files in V2 CAB are older than files on device so they are never deployed.

Here's a workaround:

1. Hard reset device.
2. Put old (dated back to 2000 will do) dummy files on top of
\windows\cgacutil.exe and \windows\mscoree.dll.
3. Install CF V2 CAB file (NETCFv2.wce4.ARMV4.CAB for PPC 03 device)
4. Check CF version by starting \windows\cgacutil.exe.
5. Check \Windows folder for V2 GAC'ed assemblies.

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
 

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