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

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

Related

Runtime Exception in windows build

I am able to generate & install windows phone build in my Microsoft Lumia 640. Its running on Windows OS 8.1.
But as soon as I run application generated by CN1 build server, it gives error
An internal application error occurred: java.lang.RuntimeException Unsupported operation as per below screen shot.
For a testing purpose I created new CN1 Project and without changing any code / theme.res I just sent windows phone build and it ended up with the same error.
Unfortunately I didnt get any log output from windows phone, as it doesnt support Logcat like Android. Also I tried to grab Isolated Storage by WP Power Tools but there was nothing in it.
Anyone faced / facing this in Codename One windows phone build ?
The Windows Phone port is the least mature of the Codename One ports having gone thru 3 rewrites due to changes from Microsoft.
We are now debating the 4th rewrite, in the meantime some community members did their own port which should be more complete:
https://github.com/Pmovil/CN1WindowsPort
So as the short answer I suggest using that. For an explanation on how we got here read on.
The reason we didn't already start with the 4th port was Microsofts project astoria that they suddenly (might have) canceled. We were relying on this project for future Windows Phone support but now that its status is unclear we are in a bind.
We also have the JavaScript port & the Windows desktop port as options for targeting windows phone alleviating some of the problem.
If MS cancels the project for good we'll dedicate the resources for a complete rewrite of the port, but that will take time. However, we don't want to start off on such a huge effort and suddenly be faced with a huge shortcut of Android compatibility.

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

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

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 emulator fails to start

I'm getting the following error when attempting to run a Windows Phone 8 app in the Windows Phone 8 emulator (via Visual Studio 2012):
The Windows Phone Emulator wasn't able to ensure the virtual machine was running:
Something happened while starting a virtual machine: 'Emulator 720P.joel' could not initialize. (Virtual machine ID 7320013C-0597-4408A-9CCF-049166CE9926)
There's no other indication on what might be causing this problem. I have ensured the following:
I'm running Windows 8.1 Pro x64
I'm on a machine that supports SLAT (It's a Core i5)
There's no other virtualization software installed or running, other than Hyper-V
I've tried cleaning the existing switches from Hyper-V using XdeCleanup.exe, with no luck
I've tried uninstalling and re-installing both the Windows Phone 8 SDK and Hyper-V. Neither helped.
The Windows Event Log reports no errors with regards to Hyper-V or starting the emulator
I've tried reducing the processor count on the VM to 1 processor (from the default of 2). No effect.
At one point in the past (a few months ago), the emulator was working. It was around that time that I got a Windows Phone 8 device, so I started developing it. I've been wanting to test a few things out on the emulator rather than having to use my actual phone. The only thing that I can think of that changed since then, was that I upgraded from Windows 8 to Windows 8.1.
Does anyone here have any idea what might be happening, or know of anywhere else I can look for any hints on what might be the problem?
Well I can't say this will work for everyone but for me it was a matter of simply turning off windows firewall.
I had checked all other settings (BIOS, SLAT, etc) and even uninstalled/installed the Hyper-v feature but Hyper-V had been working fine. In fact I could open and run the emulator - just could connect from VS. Once I turned the firewall off everything worked.
You would think you could establish a range of ports to use but who knows what they would be?
I had the same issue and even now it, when I disable my wireless actually totally remove wireless lan and disable my bridged networks. Everything works fine. Please also make sure that internet sharing is not enabled on LAN.
that mean that you don't have insufficient RAM to be able to start your Emulator.
try to stop some running programs or services. and try again
I had the same problem and I solved it as follows:
First disable the LAN connection.
This can be done by going to
Control panel > Internet Properties > Connections > LAN Setting > Remove the tick mark(deselect auto-detect setting)
Press OK.
If any anti-virus is installed, then disable the firewall.
Then go to Hyper-V manager and delete all emulators present. Restart your emulator and it will work.
Had a similar problem, This thread solved it for me
http://social.msdn.microsoft.com/Forums/windowsapps/en-US/5e6337ce-0a59-44a7-a0af-50aadc022041/windows-phone-emulator-wasnt-able-to-connect-to-the-windows-phone-operating-system-the-phone-didnt?forum=wptools

VS2013 Windows Phone 8 Emulator cannot connect to internet

I am running a simple ootb new Windows Phone 8.0 application in the emulator for Visual Studio 2013. I am using a Surface Pro, 1st generation, core i5, 4 GB RAM. Hyper V is installed, with no other virtualizing systems (like VirtualBox). Connecting via wireless.
When I run the emulator and am prompted, "Do you want to configure the emulator to connect to the Internet?", if I select "Yes", I get the following error message:
The Windows Phone Emulator wasn't able to create the external network switches:
Something happened while creating a switch:
Failed while creating virtual Ethernet switch.
Ethernet port '{...}' - bind failed: {Out of Paper} The printer is out of paper. (0x8000000E).
I have tried running through solutions suggested here and here, but unsuccessfully.
Any further ideas as to what can be done?
Is there a virtual switch in hyper-v called " Windows Phone Emulator Internal Switch"? This was not created for me when I ran into your situation. If you create a new one manually with that exact name, and set to internal, it should work. I found the solution on a bloenter link description hereg.