Issue packaging a Windows Phone 8 app - windows-phone-8

I just installed Visual Studio 2013 on my machine (which runs Windows 8.1 Enterprise Build 9600). I checked to include the Windows Phone 8 SDK option during install.
Once complete, I launched VS and tried a new Windows Phone App project.
Created and built fine. However. when I tried to run on the emulator, I get the error:
Xap packaging failed. Cannot access a closed Stream.
... and ...
Could not find file 'c:\users\wade\documents\visual studio 2013\Projects\DataBoundApp1\DataBoundApp1\obj\Debug\XapCacheFile.xml'. Please rebuild the solution and try again.
Tried a clean and rebuild but still occurs. Also happens with the data bound app project.
So, I tried installing some of the SDK updates found here: http://developer.windowsphone.com/en-us/downloadsdk. All installed without a problem; however, when I tried again I got the same error.
Note: the emulator starts and runs just fine. The problem is creating the phone package and deploying to the emulator.
I'm not sure how to fix. Anyone have this issue?
UPDATE:
I have tried reinstalling the Windows Phone 8.0 SDK and all the updates. I should note that I also have VS 2012 installed and I also cannot create a Windows Phone 8 app in VS2012.
Here's an image of the WP8 stuff installed:

I resolved this issue by downloading the full Windows Phone 8.0 SDK ISO and installing (followed by a repair on the two updates).
I wish I could better explain how my machine got into this state. My suspicion is it's because I already had VS2012 installed on the machine and VS got into a confused state.
Total time spent? 4-5 hours.

Related

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.

Windows phone 8.1 app deployment error :Error-package failed updates, dependency or conflict validation

This is what exactly is did:
Installed windows phone 8.0 SDK.
Installed windows phone 8.1 SDK(By first installing VS 2013 professional edition and later installing update R2).
After that 8.1 application xap deployment is failing
Unable to deploy xap on windows 8.1 phone using 8.1 deployment tool “Error-package failed updates, dependency or conflict validation”
The phone i am using is 8.1 updated
Can you please let me know if iam missing something?
Thanks in advance
Using Windows Phone Application Deployment (8.1), I just ran into same issue. I had tried to install an appx package which was built for Store in Release Mode.
I then realised I was trying to install an ARM build onto the emulator which needs an x86 build to run.
So instead I deployed the ARM Release Mode .appx to a physical device so I could test what I needed to test.
Hope this helps!
Not a real answer but an un-explained work around. I've recently started developing against windows phone. I am working on a Windows 8.1 machine that was previously a Windows 8 machine, previously using VS 2012 to develop against WP 8 and now using VS 2013 to develop for WP 8.1.
At intervals I start to receive the same error as reported by the question, both when deploying our WP 8.1 app to an emulator and when trying to run or debug our WP 8.1 unit tests. So far it's been resolved each time by restarting VS 2013 (and the emulator). Restarting the emulator alone has sometimes been sufficient but not always. I have not checked whether it works against a concrete device. More significantly I have no idea why deployment breaks or stopping/starting resolves it...
Our application and unit tests are WP 8.1 silver light projects and use SQLite.

I just updated my Windows Phone 8 device and now I can't debug on it. Do I need to do something?

When I try to run the app via Visual Studio 2012 Express for Windows Phone I get the error message:
The application could not be launched for debugging. Ensure that the
target device screen is unlocked and that the application is installed
It worked 10 minutes ago, until I updated with OS version
8.0.10328.78
This was resolved by deploying the solution to the phone first by right-clicking the solution and selecting "Deploy Solution", and then running the app to debug.
I don't know why it's required to deploy the solution first. This wasn't required before the update when I ran the app.
Try either of the following:
1) Developer unlock the phone once more
2) Uninstall your application from the phone by hand, and build it again

Windows 8 - Installed app missing once I close the emulator and reopened?

I started working on windows-8 this morning and I am surprised that installed app not displayed in the emulator which I installed in the morning. To be clear.
1. I created the new project called Test1 using visual studio Express 2012.
2. I installed on the emulator.
3. I close the emulator completely.
4. After an hour I created Test2 using visual studio Express 2012.
But i am not able to find the Test1 project in windows-8 phone emulator.
But when i work on iPhone and android the apps will be available if i recreate the emulator.
What could be wrong?. Do I need to change any settings?
the emulator does not persist app installs to the base image. (this was true with WP7x emulators). I don't remember seeing anything that tells me it has changed.
Emulator shutdown + start == fresh new emulator. Only time it persists your app etc is when you change settings like display language etc and emulator initiates a restart.

kb2744908 not found when installing Windows Phone 8 SDK

I have Visual Studio 2012 Pro and Windows 8 Pro. I went to install the Windows 8 SDK, and it installed fine on one of my computers, on which I installed the SDK before installing the Visual Studio 2012 Update 1. But on my second computer, where I installed the Visual Studio 2012 Update 1 before the SDK, I got the following error: KB2744908 Element not found.
Not sure if I would worry about this, or not.
I've attached a screenshot, so you can see the issue. Thanks!
It seems to have fixed itself. After rebooting and allowing the installer to finish after reboot, the SDK works fine. I have successfully created, edited, built, and deployed an application (albeit it was very simple) using the SDK.