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

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
 
L

Lonifasiko

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.
 
G

GD

After I rebooted my computer and reset the pocket PC, the error has gone.

Thanks.

GD
 

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