Deployment error: "Unable to start program...", "Unable to load the CLR."

  • Thread starter Thread starter GD
  • Start date Start date
G

GD

Hi,

I am trying to deploy a simple CF 2.0 test application from VS.Net 2005
environment. It works fine in the emulator. However, when I deploy it to my
pocket pc (HP iPaq hx4700) using USB cable, it pops up an error:

"Unable to start program
'%CSIDL_PROGRAM_FILES%\DeviceApplication1\DeviceApplication1.exe'."

"Unable to load the CLR. The target device does not have a compatible
version of the CLR installed for the application you are attempting
debug......."

It actually deployed the excutable to the device. However, it doesn't run at
all.

I installed ActiveSync 4.1. The connection seems working fine.

Any idea?

Thanks.

GD
 
Have you installed CF 2.0 in the device?

If you deploy from Visual Studio 2005, right click in the Project
select Properties and then "Devices" on the left hand side. Here be
sure you check the option saying "Deploy the latest version of the
Compact Framework (inclusing Service Packs)".

Else, deploy CF 2.0 manually into your device. You should find
"NETCFv2.ppc.armv4.cab" at
"C:\Program Files\Microsoft Visual Studio
8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\wce400\armv4"

Hope it helps.
 
Back
Top