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 / December 2005

Tip: Looking for answers? Try searching our database.

How to turn project's target from PocketPC to WinCE?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
datamodel - 29 Dec 2005 14:41 GMT
I'm having trouble porting my PPC (PocketPC) application to a Windows
CE 4.2 device.
I get a LoadType or TypeLoad exception right at application startup.
We've double checked the correct SDK cabs are installed on the CE
device,
as well as the references in the project.
But still no go.
Any suggestions or help ?
Thanks .
Chris Tacke, eMVP - 29 Dec 2005 15:06 GMT
Sounds like you're using a library not in your CE device's image.  Check to
see what major functionality blocks you're using and ensure that support is
in the underlying OS.  Focus on the PPC-specific stuff.

Signature

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

> I'm having trouble porting my PPC (PocketPC) application to a Windows
> CE 4.2 device.
[quoted text clipped - 5 lines]
> Any suggestions or help ?
> Thanks .
datamodel - 29 Dec 2005 15:49 GMT
The application runs fine on the WinCE emulator (default) though also
the debugger doesn't show any problems.
On the physical device I get a Managed TypeLoadException occuring at
frmMainMenu::.ctor+0x17

:(
Chris Tacke, eMVP - 29 Dec 2005 16:48 GMT
First, the emulator and a physical device are not the same.  Second, does
your device have all the components that emulator image has?  Third, did you
try to debug this?  You're getting a trappable exception in the ctor of your
Form - what is that line of code doing?

Signature

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

> The application runs fine on the WinCE emulator (default) though also
> the debugger doesn't show any problems.
> On the physical device I get a Managed TypeLoadException occuring at
> frmMainMenu::.ctor+0x17
>
> :(
datamodel - 30 Dec 2005 11:27 GMT
The line at which the exception occurs instantiates the database
interface class.

Deployments to The device's emulator fail.
I see the point that the VS.NET2003 "default" CE emulator is useless
since the problem is most likely device specific (Symbol MC3000)

Thanks for your replies.
datamodel - 30 Dec 2005 11:33 GMT
I think the problem probably has to do with what I'd like to call
SDK cab hell.
I'm not 100% sure that i'm using the right SQLCE,Symbol SMDK,
OpenNetCF,
and core .NET cabs for the Symbol MC3000 running WinCE 4.2.

But when installing those, I didn't get the "this SDK is not compatible
with this operating system" message that I got with other cabs (the
wrong ones).

I'll just stick with the Symbol site pages for now to see again if i'm
using the wrong SDKs.

On a more general tone. This "SDK cab hell" is uber-frustrating
considering that i'm porting a MICROSOFT .net app from MICROSOFT's
PocketPC "platform"
to MICROSOFT's winCE. It's ridiculous that MS technologies don't
readily work with themselves.

If we were developing in java. Deployment to different devices and
platforms, wouldn't be so some troublesome, when it really should be
trivial and effortless.
Paul G. Tobey [eMVP] - 29 Dec 2005 16:48 GMT
And what emulator are you using?  Windows CE is *not* some sort of
monolithic OS where every copy on every device has the same capabilities.
If you are using the Windows CE emulator in VS.NET 2003, that means
*absolutely nothing* about whether the actual target device will work.  If
you are using an emulator *for the specific target device*, then it should
match the feature set on the real device and you'll need to contact the
device OEM for help.  You can build a Windows CE image with *no UI at all*,
so obviously, displaying forms isn't going to work on such a device!

Paul T.

> The application runs fine on the WinCE emulator (default) though also
> the debugger doesn't show any problems.
> On the physical device I get a Managed TypeLoadException occuring at
> frmMainMenu::.ctor+0x17
>
> :(

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.