Running .NET CF 2.0 applications on CE 4.2

G

Guest

Hi there,

waiting for a long time to be able to run CF 2.0 applications on
windows ce 4.2 devices, i was happy to see sp1 of cf 2.0 was
released a month ago.

After initial troubles installing it (need to change the default install path
from \windows\ to \program files\) the installation went through
successfully.

Now, when i deploy a .net cf 2.0 device application to the device
the application wont run throwing an error of .net version mismatch.

It seems like my vs 2005 doesnt deploy the proper version information
to run on sp1 patched devices.

Anyone ran into this and is able to give a hint?

Kind regards,
Sascha
 
I

Ilya Tumanov [MS]

There's no support for CE 4.2 in VS 2005, it's just a NETCF runtime. You
should deploy correct NETCF CAB manually.



I would suggest using CE 5.0 project type, this way you should be able to
deploy application (but not NETCF) and debug it on CE 4.2 (except for x86).

However, it's not a guarantee as there's no official support.


--
Best regards,

Ilya

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

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 
G

Guest

Hello Ilya,

thank you for your thoughts. However, although CE 4.2 is not officially
supported from within VS 2005, i am happily deploying .NET 1.1 applications
to my CE 4.2 device. I dont even need debugging functionality.

I simply want to run .net cf 2.0 applications to run on the device. This wasnt
possible as of now - but with the service pack 1 for .net cf 2.0 - as stated
in their release log - it is now possible to deploy cf 2.0 to ce 4.2 devices.
Which in the end works ! But .net cf 2.0 applications dont run due to the
version mismatch.

I dont know if this might be a problem on vs 2005 side, hence that it is
creating a .net cf 2.0 assembly, which should be .net cf 2.0 sp1.

What is the reason having now ce 4.2 support without the ability to
actually deploy my application to the device?

Anymore insights welcome !

Kind regards,
Sascha
 
I

Ilya Tumanov [MS]

Have you installed NETCF V2 CAB on to your CE 4.2 device?

You'd need to do that before you can run NETCF V2 applications on CE 4.2.

--
Best regards,


Ilya

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

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 
G

Guest

Hello Ilya,

yes. As i stated in my initial post it was a bit tricky - but I installed
NET CF V2 (the SP1 version) to the device.

Now when i simply xcopy my NET CF V2 application and start it,
it throws the following error:


"Error: This application requires a newer version of the
Microsoft .NET Compact Framework than the version installed
on this device." (InvalidProgramException, .NET CF Initialization Error)

So either SP1 does _not_ yet work with CE 4.2 devices or vs2005
doesnt deploy the proper CF assembly.

Anymore help very welcome.

Kind Regards,
Sascha
 
G

Guest

What version of the CF is your assembly built against (exact version
number)? What version is on your device (exact version number)?

-Chris
 
G

Guest

Hello Chris,

here is a snippet from the CF 2.0 SP1 installer log on the
CE 4.2 device (date is not accurate):

-- snippet --
17/09/2004 00:11:42: About to verify installation...
17/09/2004 00:11:42: Querying version of file '\Windows\cgacutil.exe'.
17/09/2004 00:11:43: Version determined to be: 2.0.6103.0.
17/09/2004 00:11:43: Get version completed.
17/09/2004 00:11:43: Querying version of file '\Windows\mscoree.dll'.
17/09/2004 00:11:43: Version determined to be: 2.0.6103.0.
17/09/2004 00:11:43: Get version completed.
17/09/2004 00:11:43: Shared files version verification: done.
17/09/2004 00:11:43: Installation completed, no errors detected.
-- snippet --


I dont know how to find out the exact version information (any hint?)
but in my solution browser it says "Framework version: 2.0", and the
property specific version is set to false.

Hope this help a bit.

Kind Regards,
Sascha
 
I

Ilya Tumanov [MS]

Do you have all dependencies required by NETCF V2 in your OS image?

Are you using SQL Client or SQL CE and is so are these installed?

Can you run empty form application?


--
Best regards,

Ilya

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

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 

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