Results 1 to 9 of 9

Thread: Visual Basic program not running on iPAQ, need help

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2007
    Posts
    5

    Visual Basic program not running on iPAQ, need help

    I'm terribly frustrated with my program.

    I've written it in Visual Basic using Microsoft Visual Studio 2005, and it looks fine. It compiles fine. It works fine. Using these instructions, I've made a CAB file usable on mobile devices (the "test subjects" are a pair of HP iPAQs, although I've tried it also on my friend's Windows Mobile-friendly device), and after upgrading to .NET Framework 2.0, it installs fine.

    But it won't run.

    What I mean is, I click on the icon in the Start menu, and it gives me the little sonar scope "I'm working on it" animation. Forever. Left alone, it will do nothing until it runs out of batteries. If clicked, the illusion that it's actually going to run is dispelled, and the animation abruptly ends. I tried running it while the "current applications" window was up, and it doesn't appear there. It just plays the little sonar animation, and as I already said, I'm terribly frustrated with it.

    Is there something I'm missing? Is there a component or event or form that doesn't work on mobile devices? Is there something missing from .NET Framework 2.0 that doesn't like Visual Studio 2005? It's maddening, and by all rights this should have worked by now, but doesn't.

    Getting the nitpicking out of the way:
    Yes, there's enough memory to run it.
    Yes, there's enough space to install it.
    Yes, it installs correctly, without any (visible) errors.

    I'm sorry if this seems terse, but deadlines and unresponsive hardware are not friends of mine. Can anyone help?

    Thank you.

  2. #2

    Thread Starter
    New Member
    Join Date
    Nov 2007
    Posts
    5

    Re: Visual Basic program not running on iPAQ, need help

    Well, I can no longer say it does nothing when left alone. Giving it a quick test run on my iPAQ for old time's sake, I come across this error message after ~5 minutes of letting it sit:

    File or assembly name 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089', or one of its dependencies, was not found.

    Anyone care to shed some light on this?

  3. #3
    Fanatic Member Strider's Avatar
    Join Date
    Sep 2004
    Location
    Dublin, Ireland
    Posts
    612

    Re: Visual Basic program not running on iPAQ, need help

    is this an application you have developed or have you received a CAB file and are trying to install it?
    Barry


    Visual Studio .NET 2008/Visual Studio .NET 2005/Visual Studio .NET 2003
    .NET Framework 3.0 2.0 1.1/ASP.Net 3.0 2.0 1.1/Compact Framework 1.0

    SQL Server 2005/2000/SQL Server CE 2.0


    If you like, rate this post

    Compact Framework for Beginners

  4. #4
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Visual Basic program not running on iPAQ, need help

    Did you develop this using an emulator?

    Have you tried running it to the device from the IDE? If you do that you can debug it properly.

    I've had some truly nasty deployment issues with Ipaq's - but currently have my PPC app running on about 40 of these devices quite nicely.

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  5. #5

    Thread Starter
    New Member
    Join Date
    Nov 2007
    Posts
    5

    Re: Visual Basic program not running on iPAQ, need help

    Quote Originally Posted by Strider
    is this an application you have developed or have you received a CAB file and are trying to install it?
    I developed it myself, then turned it into a CAB file using the direction at the link above.

    Quote Originally Posted by szlamany
    Did you develop this using an emulator?
    I had assumed that Visual Studio 2005's "Debug" mode was using an emulator of some kind; if I'm wrong, how can I do this?

    Quote Originally Posted by szlamany
    Have you tried running it to the device from the IDE? If you do that you can debug it properly.
    I sure durn wish I knew how to do that. =) Maybe I've bitten off more than I can chew, here...

  6. #6
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: Visual Basic program not running on iPAQ, need help

    Hi,
    connect the device, change your output in VS2005 to the device, and hit run - it will deploy and run on the device.

    You sure you are not using any desktop dll's in this app?
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

  7. #7
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Visual Basic program not running on iPAQ, need help

    When you created the project you must have told it that it was a mobile project (I don't have the IDE in front of me right now - so how that is worded might be a bit different).

    At any rate - on the left side of one of the top-line tool bars is a drop down list that allows the IDE to run the app against either the device itself or an emulator. Do you see that drop down??

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  8. #8

    Thread Starter
    New Member
    Join Date
    Nov 2007
    Posts
    5

    Re: Visual Basic program not running on iPAQ, need help

    Thanks, all.

    Whew... This is going to take a lot of retooling, but at least it'll work!

  9. #9
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    Re: Visual Basic program not running on iPAQ, need help

    Another reason I prefer to ALWAYS debug on hardware rather than the emulators.
    My usual boring signature: Nothing

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