Fail to launch the applicaton

E

Eric

Hi All,

I am trying to deploy a .NET Compact Framework Smart
Device Application to an IPAQ. I have tried doing it both
via the ActiveSync 3.7 and manually extracting all the
necessary files (netcf.cjk.ppc3.x86.cab,
sqlce.dev.ppc3.x86.cab, sqlce.ppc3.x86.cab,
MyApp_PPC.X86.CAB) in the Pocket PC. It deployed okay,
however when I launched it, it gave me an error saying
that it is not a valid pocket pc application. And when I
used the ActiveSync 3.7 to deploy it, it deployed okay but
say lauching application failed in the output pane. And
when I physically go to the IPAQ and click on the exe, it
said that it is not a valid Pocket PC application as well.
On the other hand, the deployment and launching works fine
on the emulator. Does anyone have similar experience and /
or know how to solve this problem? If you do, please give
me some direction if possible.

Thanks,

Eric
 
A

Alex Yakhnin [eMVP]

"x86" indicates that the installation are for emulator.
For IPAQ you must use the ones that have a "arm" suffix in
it.
 
E

Eric Pat

Thanks for you reply Alex.

You are right. I go back to update the extract files so that it is using
the VS.NET-auto-generated MyApp_PPC.ARM.CAB (and all other files are
using the ARM ones). And I try to manually install that in the pocket pc
temp directory. It gave me an error of "LoadLibrary Failed" when it is
almost done during the "writing information for Remove Program" screen.

Then I try to re-deploy it again with the ActiveSync in VS.NET, it
doesn't give me any error, but I can't launch the deployed exe again (it
is a debug mode). (The build information of output pane is attached
below.) And when I go to the IPAQ and click on the exe, it gave me the
error message of saying the "MyApp is an invalid pocket pc application."
Is there something that I missed? Any direction and help from anyone is
appreciated.

Thanks,

Eric

------ Build started: Project: MyApp, Configuration: Debug Pocket PC
------

Preparing resources...
Updating references...
Performing main compilation...

The project is up-to-date.
Building satellite assemblies...
Visual Studio is ready to deploy MyApp



------ Deploy started: Project: MyApp, Configuration: Debug Pocket PC
------

Deploying to Pocket PC Device using TCP Connect Transport
Connected to Pocket PC Device (Pocket PC) running on ARM.
Copying files from 'F:\Projects\MyApp\bin\Debug' to '\Program
Files\MyApp'
Copying MyApp.exe
Copying netcf.core.ppc3.arm.cab
Launching device installation of 'netcf.core.ppc3.arm.cab'. Please check
device screen for further instructions.............
Copying System_SR_enu.cab
Launching device installation of 'System_SR_enu.cab'. Please check
device screen for further instructions..
Copying sqlce.ppc3.arm.cab
Launching device installation of 'sqlce.ppc3.arm.cab'. Please check
device screen for further instructions.......
Copying sqlce.dev.ppc3.arm.cab
Launching device installation of 'sqlce.dev.ppc3.arm.cab'. Please check
device screen for further instructions....
Copying content files to '\Program Files\MyApp'
Copying ico_info.bmp
Copying movLogoStatic.gif



---------------------- Done ----------------------

Build: 1 succeeded, 0 failed, 0 skipped
Deploy: 1 succeeded, 0 failed, 0 skipped


Launching Application
Launch failed - Cannot run Application.
 
E

Eric Pat

Hi Betsy,

Thanks for you reply.

Yeah that's a good point. You know it is easy to do a hard reset on the
emulator, but I never know how to hard reset the actual IPAQ (unless the
battery is gone).

However, I found out that it is something to do with the IPAQ. Some
components required by the .NET Compact Framework or the program are
lacking in the actual device. This some how cause the launching problem.
Now after I apply the service pack of the .NET Compact Framework, it
works as expected.

Thanks for your help though.

Eric
 
B

Brian Chamberlain [MS]

Hard resetting older iPaq's (3850s) is easy. You just flip the battery
disconnect switch on the underside of the unit. For newer units, this page
explains how to perform a hard-reset.

http://h18000.www1.hp.com/support/askkcs/abg/951_0_7440248_3430794.html


This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
| From: Eric Pat <[email protected]>
| References: <[email protected]>
| X-Newsreader: AspNNTP 1.50 (ActionJackson.com)
| Subject: Re: Fail to launch the applicaton
| Mime-Version: 1.0
| Content-Type: text/plain; charset="us-ascii"
| Content-Transfer-Encoding: 7bit
| Message-ID: <#[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Date: Tue, 23 Sep 2003 07:59:51 -0700
| NNTP-Posting-Host: actionjackson133.dsl.frii.net 216.17.147.133
| Lines: 1
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:34208
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Hi Betsy,
|
| Thanks for you reply.
|
| Yeah that's a good point. You know it is easy to do a hard reset on the
| emulator, but I never know how to hard reset the actual IPAQ (unless the
| battery is gone).
|
| However, I found out that it is something to do with the IPAQ. Some
| components required by the .NET Compact Framework or the program are
| lacking in the actual device. This some how cause the launching problem.
| Now after I apply the service pack of the .NET Compact Framework, it
| works as expected.
|
| Thanks for your help though.
|
| Eric
|
|
|
| Don't just participate in USENET...get rewarded for it!
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top