My phone is developer unlocked and I have installed windowsphone 8 SDK on my pc. When I try deploy any xap file from store and other source as well to my phone (device) it throws an error "XAP file is invalid"
Make sure the package is built using Release and not Debug.
You can refer the following links for more information-
http://slvideoplayer.codeplex.com/wikipage?title=installation%20instructions&referringTitle=Home
and
http://www.geekchamp.com/articles/deploying-wp7-xap-files-to-a-device-or-emulator
Related
I am building an app with Xamarin Forms and XLabs plugins.
To be able to run everything smoothly on Android and Windows Phone, i've had to use a prerelease version of xlabs (2.2.0-pre05).
When I tried to create a Windows Phone appstore package the certification failed because the packages for 2.2.0-pre05 have been built in debug mode.
To overcome this, I cloned the git hub project for XLabs and built everything in release mode.
The problem is, when I try to build the project with the packages i've built, I get this error:
Payload file '..\packages\Mike Xlabs\XLabs.Platform.WinRT.Phone\FodyWeavers.xml' does not exist.
Also, the windows store certification checks fail because of libraries used by the prerelease package.I'm getting the following error:
Error Found: The supported APIs test detected the following errors:
This API is not supported for this application type - Api=D2D1GetGradientMeshInteriorPointsFromCoonsPatch. Module=d2d1.dll. File=SharpDX.Direct2D1.dll.
Impact if not fixed: Using an API that is not part of the Windows SDK for Windows Phone Store apps violates the Windows Phone Store certification requirements.
I try to install a windows phone application from inside an application using this code
Uri FILE_URI = new Uri("ms-appdata:///local/myapp.xap",UriKind.Absolute);
await InstallationManager.AddPackageAsync("my app", FILE_URI);
but it return
global::System.Diagnostics.Debugger.Break();
i try to use
Uri FILE_URI = new Uri("ms-appdata:///local/myapp.xap",UriKind.Absolute);
var file = await StorageFile.GetFileFromApplicationUriAsync(FILE_URI);
await Launcher.LaunchFileAsync(file);
but the windows phone error happened
Can't install company app
there's a problem with this company app.
Contact your company's support person for help.
how can I install xap file from inside application? thanks.
Little information ...
There are several causes of the problem:
1) your xap file is downloaded contains the signature Windows store? I.e. you published your app Store and downloaded the install file for?
2) You trying are enterprise application scenario with self-signed XAP file?
3) As i'm understand it, the method is intended for AddPackageAsync. InstallationManager installing applications from external sources as "http//...". I'm not sure what method the XAP has installed from a local storage.
4) Installing the application that is downloaded from the Windows store are available from the SD card. I think that there are restrictions on the installation of the XAP file from local storage.
5) Known problem when InstallationManager. AddPackageAsync does not work on the emulator, but works on the device. Error code '0x800703F0' for Signed internal App while using InstallationManager
I am working on a Windows Phone 8 project where we are deploying it as a company app through HockeyApp. I have a .PFX file generated from our Symantec cert and the correct .aetx file installed on the device.
If I take the .XAP file I intend to deploy and copy it somewhere separate and test it by deploying it using the XapDeploy.exe tool, it will install silently and work properly. Then I use the XapSignTool to sign the .XAP against the .PFX successfully ("XapSignTool Success: Successfully signed = C:\xxx").
When I attempt to test this recently signed XAP with the XapDeploy tool I will get the error "Error - Installation of the application failed. Run time error has occurred. Fix the Capabilities in the WMAppManifest.xml file." If deploy this file with HockeyApp the install will silently fail on the device and appear to just sit there after download.
Does anybody know what could be causing this after code signing?
I was able to resolve my issue. First, a codesigned XAP will not run in the emulator unless you have already installed the AET file on that current running version of the emulator. So, it was incorrect for me to to expect not to see a failure after the XAP was signed.
I then encountered some other issues when deploying to my device. This was resolved by making sure that the Publisher ID GUID was the same as the Publisher ID used for the Symantec cert.
Also, as opposed to using the XapSigningTool directly I ended up using the PowerShell script that runs both the MDILXAPCompile and signs the XAP in a single step (making the post-build step easy to write). The ps script BuildMDILXap.ps1 is found under \Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Tools\MDILXAPCompile\ and ships with the SDK apparently.
If i check the capability "Shared Used Certificates" in the Windows Phone 8.1 application manifest i get the following error:
Error : DEP0001 : Unexpected Error: Package could not be registered.
(Exception from HRESULT: 0x80073CF6)
Manifest
<Capability Name="sharedUserCertificates" />
I am trying to deploy to a Nokia Lumia Icon with Windows Phone 8.1 developer preview.
Any idea what i am doing wrong or what prereq is not met?
I was able to deploy my app to the emulator, but not to a real device. I got the same error. I asked my contacts at the Phone Team and they said this is a bug and will be fixed with the post RTM updates. It should definitely be possible to sideload apps using the 'sharedUserCertificates' to real devices for normal app developers.
Getting such an app deployed through the Store may be restricted, though. This scenario is primarily meant for enterprise apps, deployed within enterprises.
I wrote a blog post about this.
If I set my phone to install apps to the phone it works just fine. If I switch it back then I get the error.
It has something to do with SD cards!! Not the SD cards per-se , but the mech The only thing different was I installed a new SD card this weekend to my Lumia 1520 with Developer Unlock. I am running VS 2013 Update 4 and have a StandAlone Phone application using a Windows 8.1 shared app class. It was working before and now its not. same error as MAGNUS
With save apps to SD CARD setting in storage sense set
If you use verbose build output it eventually says:
2>Follow the phone setting 2>Phone setting says apps to be installed
to SD card 2>layout root folder:
D:\WPSystem\SharedData\PhoneTools\AppxLayouts
With save apps to PHONE card setting in storage sense
If you use verbose build output it eventually says:
2>Follow the phone setting 2>Phone setting says apps to be installed
to internal storage 2>layout root folder:
C:\Data\SharedData\PhoneTools\AppxLayouts
search your Detailed or "verbose" build output for the term "Phone setting says"
That will get you close. Good luck.
I can confirm that VS 2013 Update 4 causes the error:
Error : DEP0001 : Unexpected Error: Package could not be registered.
(Exception from HRESULT: 0x80073CF6)
My application was deploying to the phone fine before the update, and started failing immediately after the update. Modifying settings:
Settings/Storage Sense/Store New apps on my: phone
Solved the problem. Thanks Matt for the tip, saved me alot of time.
Try to uninstall current application in your phone, and run agian.
For me its solved
This problem can be related to re-use of the same app template on Windows Phone (does not affect Windows desktop apps). In the Windows Phone section of the solution explorer, find your app manifest file (Package.appxmanifest), and review the following line near the top of the file (#'s in this example are representative, not actual):
<mp:PhoneIdentity PhoneProductId="12345678-1234-1234-1234-123456789ABC" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
If you have re-used the same app template, then the PhoneProductId number must be different from one iteration to the next. I suggest simply iterating the last digit in the string (e.g., change 1 to 2, or 2 to 3, etc....). Once you make certain all your Windows Phone apps have individualized values in this field, you should be able to deploy them all independently.
It could also be a missing image in the Package.appxmanifest. Check the visual assets tab in this file (VisualElements in XML) to see if there is some logo missing.
I changed package name in Package.appxmanifest file. So I had to Uninstall app and Re Installation helped me.
I have developed an application using Nokia Imaging SDK. It builds two forms of the XAP file, one for ARM platform and another for x86. Can anyone tell me which XAP file should be submitted to windows phone 8 store ??
And should I submit the file from debug folder or from release folder and why ??
Thank you!!
Can anyone tell me which XAP file should be submitted to windows phone
8 store ??
Use Any CPU, this will allow them to test it on emulators (x86) or real devices (ARM).
And should I submit the file from debug folder or from release folder
and why ??
Release, because this mode includes optimizations not present on Debug mode.
You have to submit the one in the Release folder:
In the Upload XAP dialog, be sure that you select the release build of your XAP
From: Upload and describe your XAP(s)
You need to set target platform as ARM while creating XAP in release mode because mobile phone have ARM processors so they will need XAP build on ARM configuration. x86 is for emulators only.
The XAP in the ARM Release ie- <Project Folder>..\Bin\ARM\Release\ should be submitted to the Windows Store.
Windows Phone Devices uses ARM based processors.
To generate the output-
First Select Release from the Solution Configuration DropBox.
Then go to configuration manager and change the AnyCPU field to
ARM.
Then Build the project.