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.
Related
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.
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.
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.
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 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.