PC Review


Reply
Thread Tools Rate Thread

Deploying OpenNetCF.org Smart Device Framework

 
 
Mark Pitman
Guest
Posts: n/a
 
      19th Apr 2004
I have built an installer for my application that installs the Compact
Framework, the OpenNETCF.org Smart Device Framework and then my application.

When it comes time for my app to get installed, CE Setup complains that my
app "... requires the installation of OpenNETCF.SDF.ppc3.ARM.CAB for it to
run properly. Install the Cab file before running this application. However,
my installer has already installed it, so I am guessing that I am not
installing all the necessary cabs or I am installing the wrong one. I
thought maybe I could just ignore the warning, but when I try to run the
app, it fails trying to load one of the SDF assemblies. My ini file for the
install of the SDF looks like this:

[CEAppManager]
Version = 1.0
Component = OpenNetCF

[OpenNetCF]
Description = OpenNetCF
Uninstall = OpenNetCF
CabFiles = OpenNETCF.SDF.PPC3.ARM.CAB,OpenNETCF.SDF.PPC3.ARMV4.CAB

and when it runs, it seems to copy files and even shows up in the "Remove
Programs" application on the device. Am I installing the wrong cab? What do
I need to do to distribute my app without making the user go download the
SDF and install it separately?

Mark


 
Reply With Quote
 
 
 
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      19th Apr 2004
Which of the libraries fails when you load the application? When did you
download the SDF package. When first released there was an issue with one of
the libraries was not strong-named and hence did not install into the Global
Application Cache (GAC) on the device, this was fixed within a couple of
days of release. You may need to download and reinstall the SDF to ensure
you have the fixed version:-
www.opennetcf.org/sdf/

Peter

--
Peter Foot
Windows Embedded MVP
OpenNETCF.org Senior Advisor
www.inthehand.com | www.opennetcf.org

"Mark Pitman" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have built an installer for my application that installs the Compact
> Framework, the OpenNETCF.org Smart Device Framework and then my
> application.
>
> When it comes time for my app to get installed, CE Setup complains that my
> app "... requires the installation of OpenNETCF.SDF.ppc3.ARM.CAB for it to
> run properly. Install the Cab file before running this application.
> However,
> my installer has already installed it, so I am guessing that I am not
> installing all the necessary cabs or I am installing the wrong one. I
> thought maybe I could just ignore the warning, but when I try to run the
> app, it fails trying to load one of the SDF assemblies. My ini file for
> the
> install of the SDF looks like this:
>
> [CEAppManager]
> Version = 1.0
> Component = OpenNetCF
>
> [OpenNetCF]
> Description = OpenNetCF
> Uninstall = OpenNetCF
> CabFiles = OpenNETCF.SDF.PPC3.ARM.CAB,OpenNETCF.SDF.PPC3.ARMV4.CAB
>
> and when it runs, it seems to copy files and even shows up in the "Remove
> Programs" application on the device. Am I installing the wrong cab? What
> do
> I need to do to distribute my app without making the user go download the
> SDF and install it separately?
>
> Mark
>
>



 
Reply With Quote
 
Mark Pitman
Guest
Posts: n/a
 
      19th Apr 2004
The error I get is:

TypeLoadException
Could not load type
OpenNETCF.Win32.RegistryKey from assembly OpenNETCF, Version=1.0.2904.0,
Culture=neutral, PublicKeyToken=30C767B29D52D6E6.

I have the latest version, the cab file is dated 2/20/2004. When I initially
installed SDF using the installer that came with it, it worked fine. Now I
am trying to build an installer for my app that will work for people who
don't already have it installed, so I uninstalled SDF from my PDA to test my
installer.

m


"Peter Foot [MVP]" <(E-Mail Removed)> wrote in message
news:%238rM$(E-Mail Removed)...
> Which of the libraries fails when you load the application? When did you
> download the SDF package. When first released there was an issue with one

of
> the libraries was not strong-named and hence did not install into the

Global
> Application Cache (GAC) on the device, this was fixed within a couple of
> days of release. You may need to download and reinstall the SDF to ensure
> you have the fixed version:-
> www.opennetcf.org/sdf/
>
> Peter
>
> --
> Peter Foot
> Windows Embedded MVP
> OpenNETCF.org Senior Advisor
> www.inthehand.com | www.opennetcf.org
>
> "Mark Pitman" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> >I have built an installer for my application that installs the Compact
> > Framework, the OpenNETCF.org Smart Device Framework and then my
> > application.
> >
> > When it comes time for my app to get installed, CE Setup complains that

my
> > app "... requires the installation of OpenNETCF.SDF.ppc3.ARM.CAB for it

to
> > run properly. Install the Cab file before running this application.
> > However,
> > my installer has already installed it, so I am guessing that I am not
> > installing all the necessary cabs or I am installing the wrong one. I
> > thought maybe I could just ignore the warning, but when I try to run the
> > app, it fails trying to load one of the SDF assemblies. My ini file for
> > the
> > install of the SDF looks like this:
> >
> > [CEAppManager]
> > Version = 1.0
> > Component = OpenNetCF
> >
> > [OpenNetCF]
> > Description = OpenNetCF
> > Uninstall = OpenNetCF
> > CabFiles = OpenNETCF.SDF.PPC3.ARM.CAB,OpenNETCF.SDF.PPC3.ARMV4.CAB
> >
> > and when it runs, it seems to copy files and even shows up in the

"Remove
> > Programs" application on the device. Am I installing the wrong cab? What
> > do
> > I need to do to distribute my app without making the user go download

the
> > SDF and install it separately?
> >
> > Mark
> >
> >

>
>



 
Reply With Quote
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      19th Apr 2004
Have you tried a soft-reset following the removal of the SDF from the
device?

Peter

--
Peter Foot
Windows Embedded MVP
OpenNETCF.org Senior Advisor
www.inthehand.com | www.opennetcf.org

"Mark Pitman" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> The error I get is:
>
> TypeLoadException
> Could not load type
> OpenNETCF.Win32.RegistryKey from assembly OpenNETCF, Version=1.0.2904.0,
> Culture=neutral, PublicKeyToken=30C767B29D52D6E6.
>
> I have the latest version, the cab file is dated 2/20/2004. When I
> initially
> installed SDF using the installer that came with it, it worked fine. Now I
> am trying to build an installer for my app that will work for people who
> don't already have it installed, so I uninstalled SDF from my PDA to test
> my
> installer.
>
> m
>
>
> "Peter Foot [MVP]" <(E-Mail Removed)> wrote in message
> news:%238rM$(E-Mail Removed)...
>> Which of the libraries fails when you load the application? When did you
>> download the SDF package. When first released there was an issue with one

> of
>> the libraries was not strong-named and hence did not install into the

> Global
>> Application Cache (GAC) on the device, this was fixed within a couple of
>> days of release. You may need to download and reinstall the SDF to ensure
>> you have the fixed version:-
>> www.opennetcf.org/sdf/
>>
>> Peter
>>
>> --
>> Peter Foot
>> Windows Embedded MVP
>> OpenNETCF.org Senior Advisor
>> www.inthehand.com | www.opennetcf.org
>>
>> "Mark Pitman" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>> >I have built an installer for my application that installs the Compact
>> > Framework, the OpenNETCF.org Smart Device Framework and then my
>> > application.
>> >
>> > When it comes time for my app to get installed, CE Setup complains that

> my
>> > app "... requires the installation of OpenNETCF.SDF.ppc3.ARM.CAB for it

> to
>> > run properly. Install the Cab file before running this application.
>> > However,
>> > my installer has already installed it, so I am guessing that I am not
>> > installing all the necessary cabs or I am installing the wrong one. I
>> > thought maybe I could just ignore the warning, but when I try to run
>> > the
>> > app, it fails trying to load one of the SDF assemblies. My ini file for
>> > the
>> > install of the SDF looks like this:
>> >
>> > [CEAppManager]
>> > Version = 1.0
>> > Component = OpenNetCF
>> >
>> > [OpenNetCF]
>> > Description = OpenNetCF
>> > Uninstall = OpenNetCF
>> > CabFiles = OpenNETCF.SDF.PPC3.ARM.CAB,OpenNETCF.SDF.PPC3.ARMV4.CAB
>> >
>> > and when it runs, it seems to copy files and even shows up in the

> "Remove
>> > Programs" application on the device. Am I installing the wrong cab?
>> > What
>> > do
>> > I need to do to distribute my app without making the user go download

> the
>> > SDF and install it separately?
>> >
>> > Mark
>> >
>> >

>>
>>

>
>



 
Reply With Quote
 
Mark Pitman
Guest
Posts: n/a
 
      19th Apr 2004
Yes, I did reset the device after removing the SDF.
By the way, thanks for taking the time to work through this with me!

m
"Peter Foot [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Have you tried a soft-reset following the removal of the SDF from the
> device?
>
> Peter
>
> --
> Peter Foot
> Windows Embedded MVP
> OpenNETCF.org Senior Advisor
> www.inthehand.com | www.opennetcf.org
>
> "Mark Pitman" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > The error I get is:
> >
> > TypeLoadException
> > Could not load type
> > OpenNETCF.Win32.RegistryKey from assembly OpenNETCF, Version=1.0.2904.0,
> > Culture=neutral, PublicKeyToken=30C767B29D52D6E6.
> >
> > I have the latest version, the cab file is dated 2/20/2004. When I
> > initially
> > installed SDF using the installer that came with it, it worked fine. Now

I
> > am trying to build an installer for my app that will work for people who
> > don't already have it installed, so I uninstalled SDF from my PDA to

test
> > my
> > installer.
> >
> > m
> >
> >
> > "Peter Foot [MVP]" <(E-Mail Removed)> wrote in message
> > news:%238rM$(E-Mail Removed)...
> >> Which of the libraries fails when you load the application? When did

you
> >> download the SDF package. When first released there was an issue with

one
> > of
> >> the libraries was not strong-named and hence did not install into the

> > Global
> >> Application Cache (GAC) on the device, this was fixed within a couple

of
> >> days of release. You may need to download and reinstall the SDF to

ensure
> >> you have the fixed version:-
> >> www.opennetcf.org/sdf/
> >>
> >> Peter
> >>
> >> --
> >> Peter Foot
> >> Windows Embedded MVP
> >> OpenNETCF.org Senior Advisor
> >> www.inthehand.com | www.opennetcf.org
> >>
> >> "Mark Pitman" <(E-Mail Removed)> wrote in message
> >> news:(E-Mail Removed)...
> >> >I have built an installer for my application that installs the Compact
> >> > Framework, the OpenNETCF.org Smart Device Framework and then my
> >> > application.
> >> >
> >> > When it comes time for my app to get installed, CE Setup complains

that
> > my
> >> > app "... requires the installation of OpenNETCF.SDF.ppc3.ARM.CAB for

it
> > to
> >> > run properly. Install the Cab file before running this application.
> >> > However,
> >> > my installer has already installed it, so I am guessing that I am not
> >> > installing all the necessary cabs or I am installing the wrong one. I
> >> > thought maybe I could just ignore the warning, but when I try to run
> >> > the
> >> > app, it fails trying to load one of the SDF assemblies. My ini file

for
> >> > the
> >> > install of the SDF looks like this:
> >> >
> >> > [CEAppManager]
> >> > Version = 1.0
> >> > Component = OpenNetCF
> >> >
> >> > [OpenNetCF]
> >> > Description = OpenNetCF
> >> > Uninstall = OpenNetCF
> >> > CabFiles =

OpenNETCF.SDF.PPC3.ARM.CAB,OpenNETCF.SDF.PPC3.ARMV4.CAB
> >> >
> >> > and when it runs, it seems to copy files and even shows up in the

> > "Remove
> >> > Programs" application on the device. Am I installing the wrong cab?
> >> > What
> >> > do
> >> > I need to do to distribute my app without making the user go download

> > the
> >> > SDF and install it separately?
> >> >
> >> > Mark
> >> >
> >> >
> >>
> >>

> >
> >

>
>



 
Reply With Quote
 
Terry Westley
Guest
Posts: n/a
 
      29th Apr 2004
"Mark Pitman" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> I have built an installer for my application that installs the Compact
> Framework, the OpenNETCF.org Smart Device Framework and then my application.
>
> When it comes time for my app to get installed, CE Setup complains that my
> app "... requires the installation of OpenNETCF.SDF.ppc3.ARM.CAB for it to
> run properly. Install the Cab file before running this application. However,
> my installer has already installed it, so I am guessing that I am not
> installing all the necessary cabs or I am installing the wrong one. I
> thought maybe I could just ignore the warning, but when I try to run the
> app, it fails trying to load one of the SDF assemblies. My ini file for the
> install of the SDF looks like this:
>
> [CEAppManager]
> Version = 1.0
> Component = OpenNetCF
>
> [OpenNetCF]
> Description = OpenNetCF
> Uninstall = OpenNetCF
> CabFiles = OpenNETCF.SDF.PPC3.ARM.CAB,OpenNETCF.SDF.PPC3.ARMV4.CAB


Looks as though you've only added the wce300 cab files to your setup.ini. Try adding the wce400
cab files as well. This is exactly the error messge I was getting and I learned later that it
was leading me astray by referencing the wce300 cab file name for the ARM cab, not the wce400.
My device actually required the ARM cab file in the wce400 directory.

--Terry

 
Reply With Quote
 
Mark Pitman
Guest
Posts: n/a
 
      30th Apr 2004
Thanks for the info. I'll try that this weekend and let you know my results!

m

"Terry Westley" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> "Mark Pitman" <(E-Mail Removed)> wrote in message

news:(E-Mail Removed)...
> > I have built an installer for my application that installs the Compact
> > Framework, the OpenNETCF.org Smart Device Framework and then my

application.
> >
> > When it comes time for my app to get installed, CE Setup complains that

my
> > app "... requires the installation of OpenNETCF.SDF.ppc3.ARM.CAB for it

to
> > run properly. Install the Cab file before running this application.

However,
> > my installer has already installed it, so I am guessing that I am not
> > installing all the necessary cabs or I am installing the wrong one. I
> > thought maybe I could just ignore the warning, but when I try to run the
> > app, it fails trying to load one of the SDF assemblies. My ini file for

the
> > install of the SDF looks like this:
> >
> > [CEAppManager]
> > Version = 1.0
> > Component = OpenNetCF
> >
> > [OpenNetCF]
> > Description = OpenNetCF
> > Uninstall = OpenNetCF
> > CabFiles = OpenNETCF.SDF.PPC3.ARM.CAB,OpenNETCF.SDF.PPC3.ARMV4.CAB

>
> Looks as though you've only added the wce300 cab files to your setup.ini.

Try adding the wce400
> cab files as well. This is exactly the error messge I was getting and I

learned later that it
> was leading me astray by referencing the wce300 cab file name for the ARM

cab, not the wce400.
> My device actually required the ARM cab file in the wce400 directory.
>
> --Terry
>



 
Reply With Quote
 
Mark Pitman
Guest
Posts: n/a
 
      1st May 2004
Well, I modified the ini file to look like so:

[CEAppManager]
Version = 1.0
Component = OpenNetCF

[OpenNetCF]
Description = OpenNetCF
Uninstall = OpenNetCF
CabFiles =
OpenNETCF_WCE4.ARMV4T.CAB,OpenNETCF.SDF.WCE4.ARMV4.CAB,OpenNETCF.SDF.PPC3.AR
M.CAB,OpenNETCF.SDF.PPC3.ARMV4.CAB

Still get that warning.

m

"Mark Pitman" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks for the info. I'll try that this weekend and let you know my

results!
>
> m
>
> "Terry Westley" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > "Mark Pitman" <(E-Mail Removed)> wrote in message

> news:(E-Mail Removed)...
> > > I have built an installer for my application that installs the Compact
> > > Framework, the OpenNETCF.org Smart Device Framework and then my

> application.
> > >
> > > When it comes time for my app to get installed, CE Setup complains

that
> my
> > > app "... requires the installation of OpenNETCF.SDF.ppc3.ARM.CAB for

it
> to
> > > run properly. Install the Cab file before running this application.

> However,
> > > my installer has already installed it, so I am guessing that I am not
> > > installing all the necessary cabs or I am installing the wrong one. I
> > > thought maybe I could just ignore the warning, but when I try to run

the
> > > app, it fails trying to load one of the SDF assemblies. My ini file

for
> the
> > > install of the SDF looks like this:
> > >
> > > [CEAppManager]
> > > Version = 1.0
> > > Component = OpenNetCF
> > >
> > > [OpenNetCF]
> > > Description = OpenNetCF
> > > Uninstall = OpenNetCF
> > > CabFiles = OpenNETCF.SDF.PPC3.ARM.CAB,OpenNETCF.SDF.PPC3.ARMV4.CAB

> >
> > Looks as though you've only added the wce300 cab files to your

setup.ini.
> Try adding the wce400
> > cab files as well. This is exactly the error messge I was getting and I

> learned later that it
> > was leading me astray by referencing the wce300 cab file name for the

ARM
> cab, not the wce400.
> > My device actually required the ARM cab file in the wce400 directory.
> >
> > --Terry
> >

>
>



 
Reply With Quote
 
Jon Skeet [C# MVP]
Guest
Posts: n/a
 
      1st May 2004
Mark Pitman <(E-Mail Removed)> wrote:
> Well, I modified the ini file to look like so:
>
> [CEAppManager]
> Version = 1.0
> Component = OpenNetCF
>
> [OpenNetCF]
> Description = OpenNetCF
> Uninstall = OpenNetCF
> CabFiles =
> OpenNETCF_WCE4.ARMV4T.CAB,OpenNETCF.SDF.WCE4.ARMV4.CAB,OpenNETCF.SDF.PPC3.AR
> M.CAB,OpenNETCF.SDF.PPC3.ARMV4.CAB
>
> Still get that warning.


You coudl just bundle the DLLs you need in the same directory as the
application. I've used that approach, and to be honest I think it's a
lot simpler than properly installing OpenNETCF - at least if you've
only got one application which needs it.

--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
 
Reply With Quote
 
Mark Pitman
Guest
Posts: n/a
 
      2nd May 2004
I did try that, and my app works ok, I just get that warning when my app
installs that you need to also install the SDF. Any ideas on how to remove
that warning?

m

"Jon Skeet [C# MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Mark Pitman <(E-Mail Removed)> wrote:
> > Well, I modified the ini file to look like so:
> >
> > [CEAppManager]
> > Version = 1.0
> > Component = OpenNetCF
> >
> > [OpenNetCF]
> > Description = OpenNetCF
> > Uninstall = OpenNetCF
> > CabFiles =
> >

OpenNETCF_WCE4.ARMV4T.CAB,OpenNETCF.SDF.WCE4.ARMV4.CAB,OpenNETCF.SDF.PPC3.AR
> > M.CAB,OpenNETCF.SDF.PPC3.ARMV4.CAB
> >
> > Still get that warning.

>
> You coudl just bundle the DLLs you need in the same directory as the
> application. I've used that approach, and to be honest I think it's a
> lot simpler than properly installing OpenNETCF - at least if you've
> only got one application which needs it.
>
> --
> Jon Skeet - <(E-Mail Removed)>
> http://www.pobox.com/~skeet
> If replying to the group, please do not mail me too



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenNETCF Smart Device Framework 2.0 =?Utf-8?B?UEhJSk8gTUFUSEVXIFBISUxJUA==?= Microsoft Dot NET Compact Framework 1 25th Sep 2006 04:56 PM
[ANN] OpenNETCF Smart Device Framework 2.0 Beta1 Mark Arteaga Microsoft Dot NET Compact Framework 2 30th Jan 2006 11:29 PM
Can't deploy OpenNETCF Smart Device Framework Terry Westley Microsoft Dot NET Compact Framework 1 29th Apr 2004 01:51 PM
OpenNETCF Smart Device Framework Martin Robins Microsoft Dot NET Compact Framework 2 26th Mar 2004 10:58 PM
OpenNetCF Smart Device Framework released! Ginny Caughey [MVP] Microsoft Dot NET Compact Framework 13 18th Feb 2004 05:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:27 AM.