Universal Windows 10 Emulator not starting up OS - hyper-v

The Windows phone emulator running Windows 10 has been working since I've installed it and last time I used the emulator was a few days ago. Now for some reason when I load my application emulator does not load the OS.
here's the steps I go throuogh to run the app :
-Run "Mobile Emulator 10.0.10586.0 720p 5 inch 1GB (which is my usual emulator to run)"
Message box saying "Configuring Windows Phone for debugging ... "
Another message box appears saying "Click "Retry" to run the emulator in elevated mode. :
You do not have permission to modify internal Hyper-V network adapter settings, which are required to run the emulator
Click retry on the message box
"Are you sure you want to run Windows Phone Packages?" Click Yes
Configuring Windows Phone for debugging box still running
Phone emulator runs but stuck on "OS is starting..."
Message box appears after leaving it running for roughly 15 mins :
"The emulator is unable to connect t the device operation system :
Couldn't set up the UDP port. Some Functionality might be disabled.
will add this to the steps"
I've followed the instructions from forums to go to Hyper-V Manager and delete the virtual switches and virtual machines - which doesn't work. And I also have Hyper-V enabled on windows features.
Any other solutions would be appreciated, Thanks in advance!
UPDATE : so I've left it running just to see if it works eventually, now another message box appears saying :
The emulator is unable to connect to the device operation system : Couldn't set up the UDP port. Some functionality might be disabled.
UPDATE : So I managed to fix it .. a little. It works for the other apps I have as well as newly created universal windows projects. But this specific app doesn't . I notice that this specific one has the "Configuring Windows Phone for debugging" message pop up whereas the other ones don't.

Why not start fresh?
New OS, new install, everything from scratch.
And don't forget to not play with UAC, OS permissions, the firewall, and do not install anything which would install virtual network adapters. Like OpenVPN, USB modems (including an iPhone), etc.
This is a solution, because your problem could be anything.

Related

genymotion stays on black screen when loading emulator

When i start a new virtual device with genymotion sometimes it will get stuck on the black screen and not load. Sometimes it will work especially just after a restart, otherwise it will hang on the black screen and become unusable.
If the emulator freezes or crashes this is likely due to incompatability with your video card driver.
If however it just hangs on the black screen, this can be due to two reasons:
Your Firewall or other program is blocking genymotion
If this is likely the case then try disconnecting any vpn services or other software which could be hindering this, and ensuring that genymotion is able to connect to the virtual device over the local network.
If you have a firewall, make sure that you allowed connections to the Genymotion network, set to 192.168.56.0/24 by default.
Your network adaptor is misconfigured
If this is the case you should try the following
Run VirtualBox.
Open File > Preferences > Network (or VirtualBox > Preferences for Mac OS X).
Edit the Host-only Network by clicking .
Check that the adapter IPv4 address is in the same network (192.168.56.0/24 by default) as the DHCP server address, lower address bound and upper address bound. If not, your virtual device cannot start.
You can also remove the Host-only Network by clicking . Genymotion will automatically recreate it at the next virtual device start.
I had this problem in Windows 10 after I updated to VirtualBox 6.0.4 and Genymotion 3.0.1. I am using 2nd generation core i5 cpu (i5 2400). Update to this graphics card is not available. According to the official documentation:
Your graphics card no longer matches Genymotion requirements. Please see https://www.genymotion.com/help/desktop/faq/#supported-graphics-cards.
If you are using a dual graphics card laptop (e.g. Intel/Nvidia or Intel/AMD), make sure you are using the most recent/powerful one.
https://www.genymotion.com/help/desktop/faq/#virtual-device-window-empty
Only solution to my problem was keep the VirtualBox 6.0.4 but downgrade genymotion to 2.12.2 version because my graphics cards is no longer supported and only supported intel graphics card is intel hd graphics 4000 generation. Link to Genymotion 2.12.2 is below:
https://dl.genymotion.com/releases/genymotion-2.12.2/genymotion-2.12.2.exe
Following the below steps solved the issue for me.
Open Windows Settings > Network & Internet > Change adapter options
Right-click on VirtualBox Host-Only Ethernet Adapter
Select Disable
Right-click on the VirtualBox Host-Only Ethernet Adapter again and Select Enable
Press power button doesn't start until then they will stuck on android logo screen then restart
I had the same problem in Windows. updating the video card driver solved the issue.
Genymotion 3.0.1
VirtualBox 6.0.4
I solved the issue in 2 steps:
Check the Android API versions installed on your system from \SDK\platforms directory.
Create New AVD using available Android versions only.
You need to check 4 different things:
proxy connections to be off( Gennymotion/setting/Network)
SDK be set( Gennymotion/ABD/SDK)
Graphic card driver be successfully installed
Virtual box installed and working correctly
Try again please. hope you will fix it easily.

Getting Error "Unable to connect to a phone. Make sure the Windows Phone IP over USB transport service is running"

I bought a Lumia 630 dual SIM recently and has been trying to register my phone for development, but kept getting this error "Unable to connect to a phone. Make sure the Windows Phone IP over USB transport service is running".
What i use to register my phone is Windows Phone Developer Registration(8.1), and the method i have tried:
Restart IpOverUsbSvc service.
Restart phone, and turn off Set Automatic in date+time.
Any help on this will be highly appreciate as I have already spent 2-3 days trying to connect the phone.
Thank you.
Unplug the USB cable and try a different port, try also a different USB cable, and restarting the Windows Phone IP Over USB Transport service...
Take a look at this thread....
Hope it helps
I had to go to Control Panel > Administrative Tools > Services
and start the
Windows Phone IP Over USB Transport Service.
My device is now working.
I tried all the solutions proposed above, but was unable to get the tool to recognize the phone. The phone appeared in Explorer, but the registration tool just couldn't see it. Then I stumbled into this article:
http://toddbaginski.com/blog/fixing-windows-phone-developer-registration-tool-errors/
Basically, you go into Device Manager and uninstall all the USB composite devices. After Windows reinstall drivers for the phone, the registration tool should now be able to see it. It worked in my case, at least.
To uninstall a Windows Phone device
Open Device Manager.
Double-click in portable devices.
Right-click in windows phone, and then click Uninstall.
Click OK to complete the uninstall process.
To reinstall Windows Phone device
In Device Manager, in the Action menu, click Scan for hardware changes.
Just remove the windows phone device from ->Control Panel ->Hardware and Sound->Devices and Printers Options and again add it back.
In my case, IpOverUsbSvc service was completely missing in the list of services.
I assumed it happened when I removed Windows phone support from Visual Studio 2015 and tried to debug app from VS 2013.
Repair of Visual Studio 2013 fixed the issue for me.
Hope that may help someone.
If you try all of Kulasangar's tips and still don't have success, try a different USB cable. Despite the directions stating you must use the one that came with your Windows Phone, that didn't work for me. I took a 3rd party's cable in desperation and that worked immediately.
Hope that helps.
If you encounter the below error message while developing app for Windows Phone.
Error Message:
“Windows Phone IP over USB Transport (IpOverUsbSvc) is not running. Retry after starting Windows Phone IP over USB Transport (IpOverUsbSvc) from the services management console.”
The cause of the error is that the service “Windows Phone IP over USB Transport (IpOverUsbSvc)” is not running. It is very simple to resolve in error.
Simple header over to services.msc. Look for “Windows Phone IP over USB Transport (IpOverUsbSvc)”, the status should be empty or automatic. Right click on it and select Start.
After doing that, try to deploy your app again and it should work fines.
I faced the same problem.
Solution
Apart from changing USB cable, restarting, we can do following steps:
1.Set the correct date and time
2.Change the device name [ From your PC, you can simply change device name]
3.your device must have internet connection.

no internet on windows phone 8 emulator

I have installed windows phone 8 SDK and tried running a simple app which embeds a WebBrowser on a page. When I try to run the app in emulator the emulator does not get internet connection. It displays an error message saying "You don't have permission to modify internal Hyper-V network adapter settings required to run the emulator". Im sure my login has admin permissions. My machine is 64bit, hyper v is enabled and Hyper v manager is running, hardware virtualization is enabled in the BIOS settings, DHCP is enabled and its connected to a wired network. I have checked all the system requirements. What ever I do it keeps on giving the same error message. I setup everything in a different machine and tried running the app in that machine. The same error message is displayed in the that machine also. Can anyone tell me how to get it working.
DHCP is enabled and its connected to a wired network
Can you run ipconfig /all on your host machine and post it here please?
seems you have problem with your DHCP or maybe multiple DHCP and conflict.
You need to add your user account as a member of the "Hyper-V Administrators" group on the machine.
Detailed steps:
Hit Windows key + Q and search for "local users and groups". Change the search scope to "Settings". Click "Edit local users and groups".
Expand the "Groups" section. Right-click on "Hyper-V Administrators" and select "Add to group".
Add your user account.
Some connection tools on the host can have negative effects when used with the emulator; I found having cisco VPN client installed on the host prevented the emulator from finding the internet. Other VPN clients may have similar side-effects. I simply uninstalled cisco (the inbuilt windows VPN is fine for what I need) and it worked perfectly.
I've also seen problems where it won't find the internet after the host has been suspended / resumed. In that scenario, it turned out to be bad network drivers. I installed a dedicated Intel NIC (rather than the on-board NIC on the motherboard) - problem solved.
Basically, Hyper-V is a bit fussy.
try refreshing the hyper-v by unchecking and then checking it again,this worked for me.
Steps:
1.control panel>>programs>>Programs and features>>turn windows features on and off>>hyper-v
2.uncheck it and restart the pc.
3.again go to control panel an check hyper-v and restart the pc again.
the try to run the emulator,should work..
another possible reason is that you did not start vs2013 as admin

How can I run my Windows CE project from within Visual Studio (2003)?

I'm working on a legacy app that needs to be continued in VS 2003; I cannot effectively debug it, though, because when I try to run it, I get the following dialog:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Deploy
Choose the device to target. If the .NET Compact Framework is not already on the selected device, it will be deployed along iwth your application.
Pocket PC 2002 Emulator
Pocket PC Device
Windows CE .NET Device
Windows CE .NET Emulator (Default)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I am running this (VS 2003) in XP Mode (Virtual Machine) on Windows 7. I do not have a connection (from XP Mode) to the device - a Symbol/Motorola PDT 3090 - so I get, "Unable to connect" when trying to run/debug/deploy in VS 2003.
What has been the case up to now is the developer would build the binary, adding debug messages, and then copy the binary over to the device and run it. Rather than continue this method, I would prefer to be able to debug it from within VS 2003. Is there a way to do this? None of the options (Pocket PC 2002 Emulator, etc.) seem to work...the device is attached to the computer via a usb. The Emulators won't work because they don’t have the necessary hardware (barcode scanner). So I need to use one of the *Device options, but have not been able to connect the usb port to XP Mode.
Does anybody have any ideas on how to debug without the constant copying-and-replacing of binaries, and the use of "show message"?
UPDATE
Alternately, if I can't run the app from within VS 2003 / XP Mode as an emulator, it would also be fine to run it on the attached Motorola handheld, attached via usb cable from the cradle to the desktop computer; I prefer the former, for the debugging capabilities afforded, but even the latter would be better than my current predicament (copying the files to the handheld device, detaching it from the computer, attaching it to the belt printer, firing it up, testing and repeat ad nauseum ad infinitum). ASAP (within two hours), I will set a bounty on this question.
UPDATE 2
If I try to run from VS 2003 in an emulator, and select "Windows CE .NET Emulator (Default)", I get:
"Emulator for Windows CE will not run within another copy of Emulator for Windows CE.
You just had to try, didn't you?"
?!? Is it saying this because I'm in a VM (XP Mode) session?
Then I select "OK" (the only option), and get, "There were deployment errors. Continue?" That trick never works; it even causes the build to fail (a rebuild fixes that, though).
UPDATE 3
Perhaps my problem with not being able to debug by connecting to the device itself is related to this msg I saw when booting up this morning (but I don't know what to do about it, IF this is the problem - do I need to search for a new driver for the Motorola MC3100?):
Devices or applications disabled.
Virtual PC/Windows CE Emulator will cause Windows to become unstable. Windows has prevented these drivers from loading. click here for more details.
The "more details" are:
Virtual PC/Windows CE Emulator
Microsoft
--------------------------------------------------------------------------------
Issue Description:
A driver is installed that causes stability problems with your system. This driver will be disabled. Please contact the driver manufacturer for an update that is compatible with this version of Windows.
Contact Information:
Web Site: http://go.microsoft.com/fwlink/?LinkId=26320
Telephone: 1-800-936-5800
That link (http://go.microsoft.com/fwlink/?LinkId=26320) ended up as: "Internet Explorer cannot display the webpage"
UPDATE 4
There is some headway (or perhaps just false hope) on the connecting to the device front:
I have 4 USB ports on my desktop machine. I plugged the USB cable into the 3rd from the top for the first time a bit ago. It then said it was recognized, and ActiveSync was finally able to make a connection.
So I then tried deploying the app again. The fourth option (the default - C.E. Device Emulator) failed as always. So did the penultimate choice (C.E. device). The second option, though (Pocket PC device), seems to possibly be working.
However, I got a cryptic err msg that just said:
#183:
I dismissed that and since then (it's been a good ten minutes now), the bottom of the VS Output windows has been saying "Launching Application" (with a blinking cursor beneath it) and the task bar has been claiming "Deploy started..."
Whether that is really of any value, though, it doesn't appear to be, as I am just "stuck" there...
Windows CE .NET Emulator (Default)
This should be the one you want, if you are running Windows CE.
The Barcode Reader takes the code and converts it to a string for you, so your code will never need to "decode" a barcode.
So, when you are testing your software using the CE Emulator, simply select the textbox you want to read the barcode to, and type that value in using your keyboard.
In your Windows 7 host PC's task bar, right click on the XP Mode VS2003 application. In the menu that appears select "Manage USB Devices".
Select your Windows Mobile device and hit the "Attach" button. Your XP Mode PC should connect via ActiveSync. (This assumes you've installed ActiveSync on the XP Mode VM. If not, you should do that first.)
Try rebooting the virtual machine. (Not the same as closing and re opening it). If that doesn't work, try a different USB port. You may end up reinstalling XP mode.
See also: How to Access USB Devices in Windows Virtual PC for Windows 7

the windows phone emulator wasn't able to create the virtual machine

I just installed it on my windows 8. It's NOT running on a VM but is running at a macbook with bootcamp.
When I try to emulate my app, I get this first error:
But then I click "Retry" and give the permission, so it runs normally.
But then, when the windows phone window appears, I get a "loading" screen and then this error appears:
Just for better tagging the post I will write the error: "something happened while creating a switch: Xde couldn't find an IPv4 adress for the host machine"
You must enable virtualization in BIOS and go to Control Panel->Programs->Turn Windows features on or off and choose Hyper-V.
I had this problem.
1- Open the Control Panel.
2- Then programs.
3- Turn Windows features on or off.
4- Further selection for hyper-v.
5- Restart the computer.
6- Repeat the previous steps but put the selection on hyper-v.
7- Restart the computer.
Enjoy ^_^
Not sure if you got to the solution, but I just had the same situation. It turns out that older VPN clients may have compatibility problems with Windows 8. I solved the issue by uninstalling VPN client (and also making sure Hyper-V was enabled).