Managed TypeLoadException ...

G

Guest

Hi

Initially I was writing my VB.NET .CF application for the PocketPC platform. I successfully deployed it many times onto a PPC 2002 and PPC 2003 devices. As I want to target the WinCE.Net platform also, I created a new WinCE project in VS.NET 2003. I added all the class files and Forms from my PPC project into my WinCE project using "add existing item". I also added all the references using the "project - Add reference" menu.

Then I copied the .Net CF SP2 onto my WinCE.NET 4.2 device (sqlce.wce4.armv4.CAB, netcf.all.wce4.arm4.cab) along with my application cab files (app_wce4.arm4.cab)

After installing the .Net CF and the Sqlce cabs I then installed my application. When I ran the application from the start menu shortcut strange thing happened..

Some of the forms that I load in the background (not supposed to be shown) are shown as being loaded 1 at a time and then a error msg appear stating

"A managed TypeLoadException occured at ?::?+0x
OK to terminate

I really have no clue as to how to resolve this problem... Any ideas?

My handhelds processor is: "Intel Corp - ARM-XScale" and runs WinCE.Net 4.2

Thanks in advance
 
C

Chris Tacke, eMVP

Are you using anything that is PPC specific (the SIP for instance)?

-Chris


Zahid said:
Hi,

Initially I was writing my VB.NET .CF application for the PocketPC
platform. I successfully deployed it many times onto a PPC 2002 and PPC 2003
devices. As I want to target the WinCE.Net platform also, I created a new
WinCE project in VS.NET 2003. I added all the class files and Forms from my
PPC project into my WinCE project using "add existing item". I also added
all the references using the "project - Add reference" menu.
Then I copied the .Net CF SP2 onto my WinCE.NET 4.2 device
(sqlce.wce4.armv4.CAB, netcf.all.wce4.arm4.cab) along with my application
cab files (app_wce4.arm4.cab).
After installing the .Net CF and the Sqlce cabs I then installed my
application. When I ran the application from the start menu shortcut
strange thing happened...
Some of the forms that I load in the background (not supposed to be shown)
are shown as being loaded 1 at a time and then a error msg appear stating:
 
G

Guest

Hi,

Yes Im using the SIP. Is this the cause of the problem? But on my form "Onload" the sip is not being called....?!?!?!

Ok, so whats the equivalent of the SIP on WinCE devices?

Thanks for pointing that out. I'l omit it.

Zahid.
 

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