UWP crashes after downloading and installing from Windows Store - windows-store-apps

I have deployed my UWP application to windows store successfully. It rans perfectly in windows phone, however, when installed in pc / laptop from windows store, it fails and crashes.
checking event viewer (windows log) shows below error;
Activation of app
AppName!App failed with
error: The remote procedure call failed. See the
Microsoft-Windows-TWinUI/Operational log for additional information.
I didn't understand what kind of error it is?
Thanks!

Have you tried yourself, with Visual Studio 2015, to run it on a Windows Phone device in Release Mode ?
Most of time, this kind of errors are due to .NET Native, which is not activated by default on Debug build but which is activated when app is published on the Store.
Thanks,

Does your app reference a portable project? If yes, does the referenced project include resource files? We have encountered similar issues and they were related to resource files. Everything worked nicely when the app was manually deployed but when downloaded from Store, the app just didn't work.
Turns out the problem was with the resource files which were inside referenced project. The problem was solved by copying the resource files from the referenced project into the app's project.

Related

Unable to deploy using Windows Phone Application Deployment (8.1) tool

First time developing Windows Phone 8.1 Universal App.
I figured how to create the .appx file after some googling. But now I need to deploy it to multiple customer devices, didn't figure that yet. For the moment I'm trying to deploy it to my development device, but it keeps throwing this error (see attached image).
I only have the myApp_ARM.appx file on my AppPackages folder. I can't find or browse to %FOLDERID_SharedData%. I have no idea where to find this ARM_Optimized.appx file.
First, reboot your phone, make sure there is no update pending. It should let you deploy into your phone.
Second, for deploying to multiple customer devices, use Hockeyapp (hockeyapp.net) to distribute the appx or use enterprise app feature.

The project needs to be deployed before it can be started

Whenever I am starting to test an Windows Phone app (even a blank app) on emulator, I am getting error "The project needs to be deployed before it can be started". The emulator will be started & run successfully, still no luck in deploying app on emulator. Getting error DEP6100 & DEP6200.
These are the stuffs I tried till now:
Checked "deploy" option in 'Configuration Manager'.
Tried deploying Windows 10 Mobile, Windows Phone 8.1 & Windows Phone 8 blank apps on different types of emulators.
Although I am able to run apps on my device.
I am running Visual Studio Enterprise 2015 on Windows 10 Enterprise.
The Emulator is x86 based and Phone is ARM architecture. To run the app in the emulator, change the CPU to x86 in the toolbar and compile it. Now you can deploy te App to the Emulator and test it.
I faced problem like that and I fixed it by right click on project > properties > change platform target to X86.
I just started playing with Xamarin Forms, and ran into this error after following the Xamarin Forms Quickstart Guide. The error message actually said to Run the Deploy... for the project that you are trying to run. Deploying the project seems to install some Windows dependencies that might be required to run the UMP. After deploying the project, it ran without issue as a Windows Desktop app, or if you change to Device, then install emulator, as Windows Phone app.
This error was relentlessly happening to me as well, and I found out that it was because my project was saved on a SanDisk SD card. If I simply moved the entire solution to my C drive, it built without issue, but on the D drive, it would give this error.

Win 10 UWP App: Unable to upload app package to Windows Store

I am trying to deploy my windows 10 uwp app to the windows store. I got a validated developer account and everything set up. My app packages have been built and passed all tests of the testing kit. Now I am trying to perform the last step: uploading to the store.
The problem is, that the "Upload App Packages..." is greyed out! I tryed to clean the project, selected the project to no avail.
Has anyone got an idea what the problem might be or how to further debug it? As there is not error message I am not certain what is wrong in the first place...
Thank you!
According to the documentation, this option merely opens the Dev center dashboard. Save yourself the trouble and open it directly in your web browser: https://dev.windows.com
To be honest, for some reason I don't even have this option in my Visual Studio (maybe it was removed in VS 2015?). I've always generated the packages from VS then uploaded them with the web browser, without any trouble.
Goto in Release Configuration and Check .net native tool chain and optimize code then create app package again (Don't forget to associate app to store first)

Failed to unpack .xap Windows App Certification Kit 3.3

I am trying to run a Silverlight 8.1 WP application through the Windows App Certification Kit and I get an error stating that the file is not a valid .xap file. I'm not sure why it is happening and not finding much about it other than one article that hints at a manifest issue. I am however able to take a dummy Silverlight 8.1 app and Certify that without error (it fails of course, but no error). The actual error is:
Failed to unpack 'xap file'. The file does not appear to be a valid xap package.
Does anyone out there know why this can happen or at least where in the manifest I might start looking?
The answer to this turned out to be an issue with the Microsoft SDK I was using. The way I figured this out is by attempting to upload the .xap file to the store even though I got that very vague error because I was still able to side load the application, so I knew to some degree the .xap file was valid. I got the following error.
The last two errors (2001) gave me more to go on, so I did some research and came across this SO post which pointed to an issue with the Advertising SDK. It turns out that the SDK I was using was adding 2 entries for some reason instead of telling me it was the wrong SDK. I used the one that came with VS 2013 Update 1, but for Silverlight, you need to use the one located here under Windows Phone 8.1 Silverlight Apps
After installing this package (make sure it is 8.1 and not 8.0), I referenced that SDK and all was well again.
Hope this helps someone else with this issue
For anybody else with similar problem, executing WACK on its own (not through VS command) runs smoothly.

Deploy to device fails when app is installed from store

On my development phone, I have my own app installed in current release from the store. My phone is registered as developer phone.
Now I´m writing an update for that app. In Visual Studio 2013, I wrote some updates and wanted to test them on my device, but I get an error:
Error writing file '%FOLDERID_APPID_INSTALL%\AppID\Project.dll'. Error 0x80070005: Access is denied.
And it doesn´t matter if I try to deploy a "debug" or a "release" build.
The only solution by now is to deinstall my (store) app and deploy then. But so I lose all my Settings and history data withih my app.
Is there any solution for this issue?
I found that I experienced this error when I went to do some further work on our app a few months after I added an In-App purchase.
It seems that in order to test the in-app purchases, I had to set the ProductID in the WMAppManifest.xml file to be the same as that of our live app.
This makes the in-app purchasing testing work, but then fails with the above error the next time you want to deploy it to your phone.
If you change the ProductID in the manifest to something new (or back to what you had it as before) then this fixes the issue.