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.
Related
I'm facing a weird problem. When I'm trying to debug my app on Windows Phone Emulator I'm getting this error:
Deployment failed because no Windows Phone was detected. Make sure a phone is connected and powered on.
However Emulator is launched, the app is deployed correctly and I'm able to debug it without any problems. I'm writing this question because this error is a bit annoying. I'm using the same settings on another machine and everything works fine there.
I'm using Visual Studio 2013 Ultimate / Win 8.1 with settings like below:
I found a problem. I have 3 Windows Phone projects, one of them (which was in fact not marked as a startup one) was targeting the physical device, and that caused the problem. Problem was solved by switching Target device in project properties -> Debug to emulator.
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.
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
I installed Windows 8.1 RTM and installed VS2012 had a little problem while installing windows phone 8 sdk but i guess it is resolved now but still i have a weird problem.
Even i select "device" as the launch target when clicked the run button VS launches the app on the emulator not the phone. Surprisingly if i right click the project on solution explorer and select debug it this time launched app on the device.
Is there anybody faced with this kind of problem? I dont want to install everthing from scratch :)
Ok it was my fault, since the project build platform was x86 visual studio could not deploy the app to the device and hence launching the emulator. When i changed the build platform to Any CPU now it deploys my app to the device without any problem.
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.