Re: Cannot run .NET CF applications

From: Maarten Struys, eMVP (maarten.struys_at_nospam.pts.nl)
Date: 04/09/04


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


Relevant Pages

  • Re: Developing in Visual Studio.Net?
    ... add-ins will require compilation against the 1.0 framework, ... believe that web applications (i.e.. ... the 1.1 framework as they are being processed from the IIS server. ... > Last night I un-installed everything, then installed the .net framework ...
    (microsoft.public.windows.mediacenter)
  • Re: Killing VB softly with his song, Killing VB softly...with a song.............
    ... your already familiar with the VB syntax and grammar you have to learn OOP ... as applied to the .NET Framework. ... C/C++ applications do not require the framework and run ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Chrome - competition for Borland?
    ... > Yes, I agree with you, but for OLTP applications, raw processing ... at turning trivial things into bottlenecks. ... VS.Net is NOT just for .Net, it's also targetting native compilation, ... reach early adopters that use Borland tools with them. ...
    (borland.public.delphi.non-technical)
  • Re: Does .net replace win32?
    ... > ontop of windows for general applications, ... applications, so the Win32 API is built with C programmers in mind. ... This makes the .Net Framework cleaner, nicer, easier to use, etc. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Fast Multiple Application Comunication
    ... You seem to have left out shared memory which would be the fastest solution ... Here is a simple wrapper that may ... comunication between multiple applications. ... not part of the .net framework and does not seem to support message ...
    (microsoft.public.dotnet.languages.csharp)