Can't deploy window phone apps to Emulator. Error DEP6100 & 6200 - windows-phone-8

I create new default project Window Phone, then run it with Emulator Window Phone but it's not work however emulator started.
I use Window 8.1 64bit with Visual Studio Professional 2013 - Update 4
Error say:
Error 1 DEP6100 : The following unexpected error occurred during boostrapping stage 'Connecting to the device': SmartDeviceException - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Error 2 DEP6200 : Boostrapping 'Emulator 8.1 WVGA 4 inch 512MB' failed. Device cannot be found. A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Help me Thanks !

Did you try all these steps?
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
Or else check out for more here:
Windows phone 8.1 emulator not loading OS
Windows phone 8.1 Emulator launching issue

I had this same error... I'll start by saying that reloading Visual Studio 2013 and Windows Phone SDK 8.0 did not fix my issue. What did correct my issue was creating a blank project within the Visual Studio Express 2012 for Windows Phone and deploying the project. Then I went into Visual Studio 2013 and tried deploying my project again and voila, it worked. Why, I have no idea. My guess is there is a file or configuration that is set up by VS Express for WP.

For error DEP6100 on 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 will restart. Replace MyUserName by you user name.
Should work with other emulators (you could check your local Hyper-V to find the right path)
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.
Activate Hyper-V (and restart computer).

Related

Can't connect to my windows phone emulator on visual studio 2013

I build an easy App in visual studio 2013, creating it through the windows phone project. The main thing is that it's supposed to fetch data from a API of my choice and write to an XML- document. It worked code-wise but depending on what network I was using(Wireless), It gave me either and error or it worked. It worked if I compiled with my phone as the network supplier, but not on my wireless at home or the schools network.
The error I recived everytime was "the thread has exited with code 259"
I googled for some solutions, and I guessed (Not really sure it was the answer I was looking for) that the error was due because of the phone emulator "takes" my PC's IP adress or network.
They told me to just remove my phone emulator on Hyper-V manager and then just re-start my emulation and it should work.
After this was done, all hell broke lose, cause now, visual studio can't even connect to the emulator.It creates a new phone emulator in hyper-v, but can't connect to it. When I try to compile the app I created it says "Trying to connect to "WVGA 512MB" or if I choose another "WVGA 720". It does this for about 3-5 min and then it says "An error occured. Would you like to continue?"
Now I have no idea what to do. I've googled for almost 2 days and I am at lost. I've un-installed, re-installed, repaired all my visual studio but nothing helps. I am using visual studio premium 2013 if that helps..
I guess this is due to the network issues, as you said the emulator takes the default PC's IP address. But normally after removing the emulator from the Hyper-V Manager and when you try to restart it, it should work.
If none of them works try removing all the Virtual Switches from your Virtual Switch Manager which is within the Hyper-V Manager. Then create a new Internal type of a Virtual Switch and restart your machine. Then try launching the emulator.
For more look into these:
Windows Phone 8 emulator can't connect to the internet
Windows Phone 8 emulator error - Something happened while creating a switch
(WP8) Emulator (XDE) Troubleshooting Tips

Windows Phone Emulator wont run corrrectly

Facing a strange Problem...
In Visual Studio 2013 Ultimate my Phone App Builds correctly, i can deploy it to my device, but when deploying to the Emulator the XDE Pops up and says "Windows Phone OS is starting...".
I can see in the HyperV Manager that the OS Runs in Hyper-V, but the Emulator doesnt Show the Output and thus is no Debugging possible.
Have deinstalled VS2013 completely, restarted, new freshly installed.. no changes...
No error Messages.. nothing :(
Don't forget to install the latest quarterly updated for visual studio 2013. I ran into a problem with the emulator (VS2012) when I installed the Azure toolkit which clobbered the quarterly update with similar problem as a symptom. Had to reapply (fix) the quarterly update.
close your emulator and delete the snapshot that is in the hyper-V manager
run the emulator again and see if it is working appropriately
(The snapshot, in this case holds the bad response of the emulator. once you delete it and run the emulator, it again reforms to hold the actions where the emulator could work properly)

Unable to run windows phone 8 emulator

I am running visual studio 2013 with windows 8.1 pro , I have enabled hyper-v from bios and enable it from program and features also. Firstly when I run my project it gives message like this
after that when I clicked retry it gives this deployment error
Need help in solving this.
Try running visual studio 2013 as an administrator this sometimes helps fix the permission issue running the emulator the first time.
After checking in that textbox where you have to add your lap to the Hyper-V Administrators, just try restarting the machine.
Have a look over here
You should try out these too
1.Run VS 2012 as administrator.
2.Open Hyper-V Manager and check the Windows Phone Emulator Internal Switch from Virtual Switch Manager. Remove the emulator switch and start a new instance of the emulator.
3.If your host computer has a WLAN connection, you should check whether it is running fine or not.
4.If your host computer is in a dedicated network, you can do a wired tethering and create a peer to peer network with another computer. Enable unrestricted internet in one of the systems, share the connection with the other computer, the emulator running in that, will also get the shared internet.

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

Windows Phone 8 emulator runs from Hyper-V, but I can't debug from Visual Studio

I'm running Visual Studio 2013 on Windows 8.1 Pro.
I am having an issue with debugging Windows Phone 8 apps. When I try and deploy to the virtual Phone (Emulator WVGA 512MB), I get the following:
When I click yes, I get the following error:
After this I get the following error in Visual Studio:
Error 1 App deployment failed. Please try again. Line: 0 Column: 0
If I select No, it just sits on a screen with the following message:
The Windows Phone OS is starting...
I can run the emulator fine directly from Hyper-V, just not from Visual Studio.
I have tried a full repair of Visual Studio. Has anybody seen this? How do I solve this?
Thanks
i usually delete the emulator vm and whatever virtual switches that was created with it, then restart the pc, after that i open Visual studio and i run my app, so that visual studio starts and creates the vm needed, then it works fine
You don't always need to restart i just do it just in case, deleting only the VM can help. just run your app through visual studio again.
open hyper-v go to virtual switch manager and delete all the switchs
then open again your vs and run your project in the emulator , press yes when the configuration message appears
and wait ...
if doesn't work then go to the hyper-v and connect to your emulator and run your project again