Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / March 2007

Tip: Looking for answers? Try searching our database.

Load correct version of .NET compact framework

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
drumred - 16 Mar 2007 15:35 GMT
Hello,

I have created a deployment package for my app.  If I hard reset the device
and then load the program I get the following message when I try to run the
app:

Error
This application (Yummy Yuk.exe) requires a newer version of the Microsoft
.NET Compact Framework than the versio ninstalled on this device.

And, of course, the app does not load.  Is there an easy way to check for
the correct version of the .NET cf and have it updated during deployment?  
Thanks.

drumred
Simon Hart - 16 Mar 2007 18:27 GMT
I am assuming your app is compiled against CF 2 and you are using PPC 2003 SE
or onwards as these devices already contain CF1 in ROM.

So..the easiest way to detect if CF2 is installed on your device is to check
the .unload file exits for CF2. Each CAB deployment generates an .unload file
which is the name of the manufacturer and description of the application
combined.
You need to check for the following file:

\Windows\Microsoft .NET CF 2.0.unload

If it doesn't exist, you need to fire the WCELOAD.exe passing it the CF2 CAB
file before you can load your app.

Simon.

> Hello,
>
[quoted text clipped - 11 lines]
>
> drumred
drumred - 17 Mar 2007 12:52 GMT
Is there a detailed writeup of what needs to occur on load.  CF
incompatibilities should be a fairly common occurrance on app deployments.

- What if there isn't enough memory for cab?
- What if cf version and device aren't compatible?
- Low storage memory during install?
- Security setting prevent intall (WM5)?
- A managed app is running?

> I am assuming your app is compiled against CF 2 and you are using PPC 2003 SE
> or onwards as these devices already contain CF1 in ROM.
[quoted text clipped - 27 lines]
> >
> > drumred
Simon Hart - 17 Mar 2007 13:44 GMT
This is no different from the desktop, you have to handle this yourself.
There is no magic API you can call that handles these potential issues,
unfortionately ;(

Simon.

> Is there a detailed writeup of what needs to occur on load.  CF
> incompatibilities should be a fairly common occurrance on app deployments.
[quoted text clipped - 36 lines]
> > >
> > > drumred

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.