Re: Cannot run .NET CF applications
From: Maarten Struys, eMVP (maarten.struys_at_nospam.pts.nl)
Date: 04/09/04
- Next message: Mike: "Re: Cannot run .NET CF applications"
- Previous message: franky: "convert a Type to DBType ?!"
- In reply to: Fabio: "Cannot run .NET CF applications"
- Next in thread: Mike: "Re: Cannot run .NET CF applications"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 9 Apr 2004 15:55:42 +0200
You compiled against the full .NET Framework and what you need is the .NET
CF? When you have Visual Studio.NET 2003 you can create smart device
applications from the IDE. You can also take a look here to create apps
without VS.NET 2003: http://www.opennetcf.org/Forums/topic.asp?TOPIC_ID=341.
--
Maarten Struys, eMVP
PTS Software bv
www.opennetcf.org | www.dotnetfordevices.com
"Fabio" <anonymous@discussions.microsoft.com> wrote in message
news:CCBC95E0-B1DA-430D-800D-5ADF5C824453@microsoft.com...
> 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 DummyForm
> {
> 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.cs
>
> 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).
>
> Thanks
> Fabio
- Next message: Mike: "Re: Cannot run .NET CF applications"
- Previous message: franky: "convert a Type to DBType ?!"
- In reply to: Fabio: "Cannot run .NET CF applications"
- Next in thread: Mike: "Re: Cannot run .NET CF applications"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|