G
Guest
Hi
i'm trying to see how .NET CF applications looks like on my PocketPC 2002. So, i wrote a very simple dummy windows form in C#
using System.Windows.Forms
public class DummyFor
public static void Main(
Application.Run(new Form())
I compiled that with csc command line tool distributed with .NET framework 1.1
csc /t:winexe /r:System.dll /r:System.Windows.Forms.dll DummyForm.c
Compilation ends without errors and produces my DummyForm.exe executable that works fine on the desktop PCs i tried it on
Then, i use ActiveSync 3.7 to copy this executable on my iPaq h5450, where i previously installed .NET Compact Framework SP2 (looking at Microsoft's download pages it seem's that nothing else is required to run .NET applications on PPC)
When i launch it on the iPaq, i get a TypeLoadException on System.Windows.Forms.Form type
Please help me understand what is wrong with this: i've controlled iPaq's Windows directory and seen that there is a file named 'GAC_System.Windows.Forms_v1_0_5000_0_cneutral_1' (that is the same version of this assembly included into .NET Framework 1.1), so i suppose that the classes within the namespace System.Windows.Forms are registered
Note that i can't use Visual Studio .NET 2003 because i haven't got it (and -given also the price-, before purchasing it, i'd like to do some tries with hand-written and comman-line compiled applications on my iPaq)
Thank
Fabio
i'm trying to see how .NET CF applications looks like on my PocketPC 2002. So, i wrote a very simple dummy windows form in C#
using System.Windows.Forms
public class DummyFor
public static void Main(
Application.Run(new Form())
I compiled that with csc command line tool distributed with .NET framework 1.1
csc /t:winexe /r:System.dll /r:System.Windows.Forms.dll DummyForm.c
Compilation ends without errors and produces my DummyForm.exe executable that works fine on the desktop PCs i tried it on
Then, i use ActiveSync 3.7 to copy this executable on my iPaq h5450, where i previously installed .NET Compact Framework SP2 (looking at Microsoft's download pages it seem's that nothing else is required to run .NET applications on PPC)
When i launch it on the iPaq, i get a TypeLoadException on System.Windows.Forms.Form type
Please help me understand what is wrong with this: i've controlled iPaq's Windows directory and seen that there is a file named 'GAC_System.Windows.Forms_v1_0_5000_0_cneutral_1' (that is the same version of this assembly included into .NET Framework 1.1), so i suppose that the classes within the namespace System.Windows.Forms are registered
Note that i can't use Visual Studio .NET 2003 because i haven't got it (and -given also the price-, before purchasing it, i'd like to do some tries with hand-written and comman-line compiled applications on my iPaq)
Thank
Fabio