CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2000
    Location
    Indore (MP) INDIA.
    Posts
    356

    Question NotSupportedException on Windows Mobile Device ...

    Hi Everyone,

    I am writing a simple application to start with Windows Mobile 6. Though, I have developed many applications on .NET Framework 1.1, but this is the first time I am working on Compact Framework.

    I have tried to write an application, that creates a simple form with 2 buttons on that, "Hide" and "Unload". I built the application well and copied it to the device. The application was build using FW 3.5 and before running the application on the device, I installed .NET CF 3.5 (NETCFv35.wm.armv4i.cab) on the device and rebooted it.

    When I run the application, it fails during the execution of method "InitializeComponent()". The error is below:

    SmartDeviceApplication1.exe
    NotSupportedException

    at
    Microsoft.AGL.Common.MISC.HandleAr(PAL_ERROR ar)
    at
    System.Windows.Forms.Controls._InitInstance(WNT wnt, UInt32 dwStyle)
    at
    System.Windows.Forms.Control..ctr(WNT wnt)
    at
    System.Windows.Forms.Button..ctr()
    at
    SmartDeviceApplication1.Form1.InitializeComponent()
    at
    SmartDeviceApplication1.Form1..ctor()
    at
    SmartDeviceApplication1.Form1.Program.Main()


    I have only set the text property of the buttons, no tricky code, no functionality ...

    I am not clear what is not supported, The button control or the Framework ? OR is it a symptom of some other problem.

    Not that this application works well on the Classic device Emulator.

    Can some one knows about it ?

    Thanks,

    *(Vipul)() ;
    (*Vipul)() ;

  2. #2
    Join Date
    Oct 2003
    Location
    .NET2.0 / VS2005 Developer
    Posts
    7,104

    Re: NotSupportedException on Windows Mobile Device ...

    "it's a fax from your dog, Mr Dansworth. It looks like your cat" - Gary Larson...DW1: Data Walkthroughs 1.1...DW2: Data Walkthroughs 2.0...DDS: The DataSet Designer Surface...ANO: ADO.NET2 Orientation...DAN: Deeper ADO.NET...DNU...PQ

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured