Program requires newer verison of Compact Framework.

J

James L

I wrote my program and it was working just dandy. Then I tried to
distribute it to a user and it would not work. I noted thay my device
had .NET Compact Framework 2.0 installed on it but his was 1.0.

To test, I uninstalled 2.0 and installed 1.0 on mine and sure enough I
got the same problem as him.

I uninstalled 1.0 and went to reinstalled 2.0 but found I did not have
the install set handy. So I went ot eh web to download it and all I
find is 2.0 Beta 2. I installed 2.0 Beta 2 and now my device gives me
an error telling me the program needs a newer version of the .NET
compact framework then I have installed.

First question: Is tyhere a newer veriosn then 2.0 beta 2 and where do
I find it?

Second Quesiton: It would be better if I could compile the program for
1.0 since that is what more users are likely to have. Is that
possible?

James Lysaght
 
G

Ginny Caughey [MVP]

James,

Beta 2 is the newest widely available version of .NetCFv2, but you will find
more users that have version 1 installed. If you build your app against
version 1, your app should run ok with version 2 anyway (and report it if it
doesn't!)

Ginny Caughey
..NET Compact Framework MVP
 
C

Chris Tacke, eMVP

The only release version of the CF is 1.0 (SP3 being the latest). All CF
2.0 stuff has been tech preview or Beta and is not distributable. The only
users who might have it are developers, so unless you're writing a developer
tool, you're going to want to target 1.0

--
Chris Tacke
Co-founder
OpenNETCF.org
Are you using the SDF? Let's do a case study.
Email us at d c s @ o p e n n e t c f . c o m
http://www.opennetcf.org/donate
 
P

Peter Foot [MVP]

This error is commonly seen if you run an app which uses either the
SqlClient or SqlCe provider and you have not installed the required CAB to
the device. While all PocketPC devices from 2003 onwards will have .NETCF
v1.0 in ROM you'll need to ensure you install the required SQL cabs - these
are deployed automatically by Visual Studio when you are debugging.
You can find these cabs within your VS2003 installation in processor
specific folders e.g.
C:\Program Files\Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\v1.0.5000\Windows CE\wce300\arm\sqlce.ppc3.arm.cab

Peter
 
J

James L

Aditional Problem,

Now Visual Studio cannot open any projects or create new ones. I get
the following error:

Project could not be opened because the Microsoft Visual Studio 2005
compiler could not be created. Unable to find required file
mscorlib.dll.

Now what? Reinstall Visual Studio?

James Lysaght
 
P

Peter Foot [MVP]

VS2005 doesn't install the desktop v1.1 framework by default onto your
development machine which is required to compile v1.0 .NETCF projects. So if
you don't have VS2003 or .NET v1.1 already on your machine you'll need to
install this. It will install side-by-side with v2.0 Beta

Peter
 
J

JamesL

Ok,

I have my visual studio working again. And I have determined that my
problem deploying my program is this:

On my machine, when I deploy the program to my handheld VS 2005
automatically upgrades my device to CF 2.0.

But when I deploy the .CAB file to a user. The user has version 1.0 or 1.1.
Therefore the program does not work.

I read the help for How to specify the runtime version but the help speaks
to VS 2003, I have 2005. It is different.

So how do I specify the runtime version for the program in VS 2005?

James Lysaght

P.S. I posted this as a new thread as well.
 

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