I have a fresh installation of windows 8 and I have installed visual studio 2012 and Windows Phone 8 SDK. I can successfully create projects and run them in the emulator but my emulator doesn't have internet access. At the first time i ran the emulator the prompt was given whether i want internet access or not. I selected yes but in have no internet access. I connect to the internet using a dongle. It works fine and connection has no problems as well. I cant seem to understand the problem, What are the solutions to this problem.
How long are you waiting from launching the emulator to trying to access the net? The emulator takes a little while longer than you would expect to set up a connection - is that the issue?
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 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
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
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.
Problem:
When I start Windows Phone 8 emulator it launches a virtual machine in Hyper-V. After a few minutes Windows Phone OS gets loaded (I can connect to it through Hyper-V manager (it's inconvenient to play with WP this way though)), but the emulator keeps reporting: "The Windows Phone OS is starting...".
After some time (apparently timeout happens) deployment from Visual Studio fails with error: "App deployment failed. Please try again."
How I got here?
Everything works fine when I use wifi connection and have a dynamic ip address. Emulator works properly and I have internet in Windows Phone OS.
But unfortunately most of the time I have to use Ethernet connection with a static IP address (which is assigned to me by internet provider based on my MAC address). And in this case there is no internet in Windows Phone emulator.
As far as I understand, virtual machine in Hyper-v connects to the network with a kind of it's own ethernet card(another MAC address) and have a different ip address. In that case it won't get any internet from my provider.
And even if the emulator would have the same MAC and IP address it will create a mess for internet traffic.
So my laptop should be a router for WP emulator. That's why I make sharing of my primary internet (ICS) with a Windows Phone emulator switch (vEthernet (Internal Ethernet Port Windows Phone Emulator Internal Switch)). In this case I do have have an internet on Windows Phone, but when I connect through Hyper-V manager only. In Emulator it doens't even show when the OS gets loaded.
After I stop sharing of the internet with Windows Phone emulator switch, the emulator itself is working perfectly.. but with no internet.
Any ideas how to make windows phone emulator work with my type of internet connection?
Here is a good resource from Microsoft on Troubleshooting the Windows Phone 8 Emulator.
Follow the instructions and hopefully it should solve your problem
The Cannot connect to network destinations or to Internet sites section of the link, should address your problem.
Update:
One more solution from another site,
"Go into Hyper-V Manager from your start screen. Go into the Virtual Switch Manager.
See if a virtual switch with the name "Windows Phone Emulator Internal Switch", if not Create a virtual switch called "Windows Phone Emulator Internal Switch". And Make it's connection type 'Internal'."
Do all this before launching the Emulator. And if that did not solve your problem, remove the existing switch and create the new one again.
If still that didnot solve your problem, here is a good discussion about the similar problem .. check that.
Windows Phone 8 emulator can't connect to the internet
I think I got the answer for this issue from Microsoft forum.
DHCP is clearly a requirement for windows phone emulator (it's listed as a requirement for SDK). And if you have a static IP address it's not possible for you to have internet on your windows phone emulator.. even with Internet Connection Sharing.
Possible solutions I can see:
Install Windows 8 with Hyper-V and Emulator in some other virtual
machine (VMware, VirtualBox)
Install some proxy (Not sure if it will work. I think it would be difficult to configure.)
Buy a router. This seems to be the easiest solution. I would recommend this to everyone and not to waste that much time on this as I did :)