Unable to Debug when running UWP Apps in x86 emulators - warnings

I try to run my UWP app in x86 platform in Mobile Emulator 10.0.10586.0 WVGA 4 inch 512 MB
it shows a warning like the below screenshot,
Due to this, i was unable to debug and i was unable to get values in Immediate Window. Can you please give me a solution for this?
Thanks in advance,
Venkatesan R

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 emulator not loading OS

I am trying to launch the emulator (Emulator 8.1 WVGA 4 inch 512 MB, or any other as a matter of fact) but it fails to launch.
It goes to the "Loading OS" screen then throws an error box with the text "DEP6100". On VS, it says at the bottom
Error1 Error : DEP6100 : The following unexpected error occurred during bootstrapping stage 'Connecting to the device': ObjectDisposedException - 0x80131622
and
Error2 Error : DEP6100 : The following unexpected error occurred during bootstrapping stage 'Connecting to the device': ObjectDisposedException - 0x80131622
Looked in the internet but haven't found an answer yet. Can you please help?
Please let me know what additional information you need.
I had the same problem on a fresh install of Windows 8.1 and Visual Studio 2013 Update 3.
Firstly, I went through all of the Microsoft requirements and suggested steps for problems found on MSDN here:
Windows Phone Emulator for Windows Phone 8
After confirming that I met the requirements and none of the possible fix suggestions fixed my problem, I tried the following, which fixed the errors I was getting with the emulator.
I fixed the problem by:
Closing Visual Studio
Going to the "Control Panel"
Selecting "Programs and Features"
Find "Windows Phone 8.1 Emulators - ENU" in the list
Click the "Change" button at the top or right-click and select "Change"
On the "Visual Studio" window that appears; select "Repair"
Wait for the process to complete, and re-open Visual Studio
Run the emulator again and it works this time!
You may have to restart your PC if you left Visual Studio open in order for the changes to take effect. Good luck!
I had same problem . first i fixed it with:
Updating windows
Uninstall / install Windows Phone SDK 8
Remove and add Hyper-v again ( maybe it is not necessary )
But problem came back and instead of previous solution i fixed the issue with :
going to windows firewall and then click on "restore defaults"
Installing McAfee seemed to block out my emulator... I uninstalled it and restored default firewall settings and it's working for now...
Make sure your processor supports the necessary requirements for running the emulators. After a few hours of trying I finally checked on...and the processor I have doesn't support at least one of the requirements.
Run coreinfo -v - available here - you're looking for an * next to EPT (on Intel) or NPT (on AMD). If it shows a - then you need a different processor. Good luck!
For Windows 10 Emulators 10.0.1.0 (1081p 2gb)
You should Delete all (VHD and AVHD) files in:
C:\Users\MyUserName\AppData\Local\Microsoft\XDE\10.0.1.0\
All will be recreated when the emulator wil restart. Replace MyUserName by you user name.
Should work for other emulator.
See you :)
I had your same problem and after many attempts resolved it this way:
Deactivate Hyper-V (and restart computer);
Go in the Device Manager and open the Network Adapters, here uninstall everything with the name "Hyper-V...", this will allow us to reactivate Hyper-V without any conflict;
Enable Hyper-V (and restart computer);
Finally launch the emulator (if it is the first time you launch it you will have to wait 5-10 minutes, so be patient and wait for it to load all apps it need).

After upgrading to Windows 8.1, unable to run Windows Phone emulator without memory error

After I updated my Samsung Series 9 SSD laptop with 8GB of RAM to Windows 8.1, (not even a year old, and top-of-line when purchased last november), I am now unable to run the Windows Phone emulator while debugging my WP8 app.
The error messages I see is:
"Not enough memory in the system to start the virtual machine emulator
WVGA 512MB.user with ram size 512 megabytes"
Well, the instant I attempt to run a build, it the machine immediately goes from 25% memory consumed to 80% consumed. Even after I close Visual Studio Express 2012, still it is stuck at 80% memory consumption according to the task manager. At this point, I am unable to run the Windows Phone emulator to test my app.
How can I work around this issue without replacing my hardware?
Thanks!
Microsoft has now posted a KB article with information about how to edit the registry to correct this:
Start Registry Editor.
Locate the following registry subkey:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Virtualization
Right-click the Virtualization
folder, point to New, and then click DWORD Value.
Type MemoryReserve, and then press Enter.
Double-click MemoryReserve,
enter 2048 in the Value data box, select the Decimal option, and
then click OK.
Close Registry Editor.
I can't post comments yet but I wanted to confirm being able to start the emulator after starting the Hyper-V Manager. I was getting memory errors trying to launch the emulator; I started the emulator via the Hyper-V Manager and was able to launch it from VS2013.
Closing down some applications (eg SQL Server) did the trick for me.

can not launch app on device

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.

getting "App deployment failed. Please try again. " while running Windows phone 8 emulator

I am developing Windows phone 8 app. When I try to run the emulator of WXGA or 720p I am constantly getting this error. Searching regarding this error leads to the conculsion that I should not run more and more app parallely. So I ran only VS2012 then also getting the error. I am having enough 4GB of RAM then also having problem. My friend's PC has 2 GB of RAM then also it works flawlessly in it. Anyone know what's the issue & best practice to run the emulator smoothly?
PS : I don't have REAL Windows Phone device :(
Just try rebooting your Windows 8 Phone. I just had the same issue, and rebooting worked for me while deploying on device.
Please ensure you have following to get rid of the error,
Minimum Hardware/software requirements (https://dev.windowsphone.com/en-us/oem?contentName=docs%2FGetting_Started%2FPreparing_for_Windows_Phone_development)
Valid developer license/account to develop windows phone applications
Enough free RAM (>2GB RAM should be free)
Not more than one instance of VS is trying to use same emulator.
If everything is holds good then try following,
Restart emulator & check if it fixed the issue, if not go to next step.
Go to Hyper-V manager and delete all the virtual switches related to WP. If it doesn't fix issue go to next step.
Go to Hyper-V manager and delete all the windows phone virtual machines. repair WP SDK from control panel.
More info about troubleshooting errors like this can be found at https://social.msdn.microsoft.com/Forums/windowsapps/en-US/b06cc9f2-aa5e-4cb3-9df1-0c273e1dfd68/wp8-emulator-xde-troubleshooting-tips?forum=wptools :)
In worst case, you will have to uninstall & install WP SDK.
Hope it helps.
The emulator may not work when its dedicated requirements are not perfectly matched. Emulator Requirements
You can always try deploying an app by selecting 'Device' in the emulator which will actually deploy the app on your phone and you can test it out.
note: Make sure you're using the right version of app which is to be deployed in its righteous OS version.
Also try to restart your emulator/device
Well. This might be happens because of some inner problems of Emulator. Because even me too faced this same problem some days ago. So, let me tel you what I have did and how I got rid of that problem. So, try as per my instruction and if this works. Just Mark it as an answer. else, comment what you have got after.
Check all Emulator VGA and VXGA and 720p
After you got that error, just tap Ok or Cancel in the dialog box and go to
Open Emulator -> Strat Screen will be shown -> goto All Apps -> Check your app name (It will exist and open your app and take screenshots)
I am sure this will be works for you.
Only restart the device or the emulator and the deployment will success