I'm playing around with windows phone 7 development, when I press F5 Visual studio takes forever to deploy the app, I get
Window Phone Emulator is doing complete OS boot.
What would be the problem?
PS: I'm using windows 7 on Mac with Parallels Desktop
The emulator isn't supported running inside or side by side other VM's at this stage. It is implemented as a VM itself. VM's running on windows platforms will be detected by the emulator startup and a specific error message provided. I've noticed several people having the same issue from Parallels on Mac ... presumably the VM detection doesn't work over there to stop the attempt.
System requirements documented here and here for your reference.
Similar to how we have to run a Mac to develop for iPhone without hassles, you'll need to run a PC to develop for Windows Phone 7 - at least for now.
You may also find your issue with the WIndows Phone Emulator is because the Emulator actually the real phone ROM running in a Virtual Machine.
Since your situation is a VM (Windows 7 on Parellels on Mac) this may explain your performance issue. Developers using VMWare have had similar issues plus Virtual PC / Hyper-V does not support Windows Phone 7 at all.
Running virtual machines on virtual machines is a massive performance hit, your only solution may be a cheap PC installation of Windows Phone 7 tools etc on compatible hardware ie Graphics Card / with WDDM 1.1 compatible drivers etc.
For my WP8 deployment, I notice that disconnecting my MacBook Air from the power source will slow the deployment down considerably (so will the debugging and tracing).
Simply plug the laptop back to the power source and everything will become fast again.
Don't kill the emulator between debug sessions. There is no need.
Also - Visual Studio 2010 Express For Windows Phone, which is installed with the tools, is much more responsive as it has less features running.
So if speed is really an issue, that may be an option.
Related
I am not able to start any of the Mobile Emulators for Windows Phone 10 (version 10.0.10240).
When I start it from the VS 2015, it gets stuck at "OS is starting". In the Hyper-V Manager, I can see the status "Starting (10%)" for the whole time. After some time, the machine is automatically restarted and it gets stuck at "Starting (10%)" again. Then it timeouts again and the emulator shows an error: "The virtual machine cannot be started because the file rdvgm.exe that is required to start the RemoteFX Manager process does not exist". That is weird, because I do have the rdvgm.exe in the C:\Windows\System32.
I have seen that there are some questions with the same error, but they are resolved by fixing the network switch or by killing devenv.exe after it shows "OS is starting". I have tried both, but it did not help. The network switch issue is different (I have seen it on a different computer - in that case the emulator starts correctly, but VS is not able to connect to it). I am stuck at "Starting (10%)".
What can I try to get it working? Windows Phone 8 emulator is working without any issue.
Thanks
The problem was that Hyper-V detected a graphic card which is able to work with RemoteFX (integrated Intel GPU) but the dedicated one (AMD Radeon) was not supported. I was not able to convince Hyper-V to ignore the dedicated one. When I disabled the RemoteFX support for Hyper-V (unchecked it in the Intel GPU setting in the Hyper-V configuration), it started working.
I found this Microsoft technical support desk yesterday. Its an on line chat with their technical people. I don't know if it covers all MS products. I was asking them about Outlook. Could be worth a try. I found it a touch slow at times, but ...
https://www.awasa.microsoft.com/en-GB/consultation/index?id=914801398064643&skuId=0
Hyper-V has problems enabling RemoteFX with some dual gpu graphics cards. Disabling one of the graphics cards in device manager solved the problem for me:
Disable one of the integrated graphics cards in device manager. I disabled Intel (R) HD Graphics 4600 and left NVIDIA GeForce GT 740M enabled.
Reboot Windows.
Delete the existing mobile phone virtual machines in Hyper-V Manager.
Start Visual Studio and deploy your app again.
I'll be honest, with much distress, I performed a complete factory reset. Reinstalled only Visual Studio 2015 Community edition (only with the tools I needed and not any other emulators such as Android), and it worked after setting up Hyper V as instructed via documentation on dev.windows.com
So I have a HP laptop, and as many HP users know it's a nightmare to install Hyper-V on it. But I somehow managed. Hyper-V is running on my laptop and I have all the necessary hardware requirements:
SLAT is enabled
VT-x is supported and enabled
I'm running 64 bit Windows 8.1 Professional
I'm running Visual Studio 2013 Professional Update 3
Hardware D.E.P. is enabled and supported
And yet when I run the Phone Emulator installation I get the following display:
I can't figure out what's going on or why I keep getting the error. Hyper-V is running as shown:
I've spent two days already trying to figure this out and searching on Google for a solution to this problem. Some of the things I've tried:
Flashing my BIOS
Resolving issues with the Realtek BlueTooth driver (this causes issues with Hyper-V)
Reseting my BIOS
Doing a clean install of my whole system
Installing all Windows Updates
Installing all Visual Studio updates
Enabled / Disabled D.E.P.
Any advice is appreciated. If you need the log from the emulator installation let me know and I'll post it here.
Thanks
UPDATE:
I've attempted to install winsows server standard 2012 and tried enababling hyper-v and installing visual studio and the phone emulator there, and that works and I'm able to run the emulators with no problem.
When I tried the same thing back after installing windows 8 again it installs hyper-v but fails to start windows after installing visual studio update 2 with the phone images etc. The only way I can boot back into windows is if I turn off virtualization in bios.
So it turns out that HP Pavilion laptops support all that is needed to run Hyper-V, however it looks as if HP is blocking the SLAT functionality from working properly with Hyper-V thus not allowing it to run correctly. This looks like it's blocked at the BIOS level.
Updating the BIOS doesn't solve the issue.
The way I came to this conclusion is that Windows Server running Hyper-V runs the Windows Phone emulator with no problems, and it's a Microsoft decision to not require SLAT when running Hyper-V on Windows Server while requiring it on Desktop version of Windows.
Seeing how I paid extra for a more powerful laptop to be able to use features like Hyper-V, and to have an experience such as this due to a manufacturer configuration has left a bitter taste in my mouth. Needless to say this is the LAST time I'll ever buy an HP laptop.
when you try and run the emulator it will load, then say windows phone OS is starting up, then sit there about 3-5 mins and fail.
Im Running Visual Studio Express 2012 for WP on Lenovo N586 64-bit I've upgraded to windows 8 pro
lemme run down the list of what Ive tried...all are listed here
yes hardware supports hyper-v virtualiztion amd a6-4400m
I'm slat Capable theres a program you can use to test this.
Hyper-v is Installed and running fine
running windows 8 pro I had to upgrade.
Im 64 bit
Im not running any other virtualization software
Ive run XDEcleanup.exe and ran VS2012 as administrator no luck
no im not running on a virtual machine.
and just for fun I've uninstalled the sdk and re installed it
any idea?
For what you're describing, its looks like the VS is trying to create the virtual switch, but failed. To resolve this, go to Hyper-V's Virtual Switch Manager, on the left side of the window, and be sure that you have one virtual switch for every network card you have, usually you must have 3: 1 for the wireless, 1 for the LAN and 1 for internal. If your don't have the wireless or the LAN, create them.
I'm trying to make a simple Windows Phone application on a Macbook Pro. So I'm running Visual Studio in Windows 7 inside of VMware Fusion.
When I try to run the phone emulator, this is what I get.
I looked for settings that I could modify to the virtual machine settings but didn't find any.
Unfortunately this technique will probably not work for you. I had the same issue when I was on my PC and wanted to create iPhone applications. VMWare (and other Virtual Machines) are not fully gfx enabled. You need to check the box that says "Accelerate 3D graphics
What I would suggest is to install Windows 7 on your Mac using BootCamp.
I'm getting an error when I start up the windows phone emulator:
windows phone emulator not supported because your computer does not have the required graphics processing unit configuration. An XNA framework page will not function without a graphics processing unit. Do you want to continue starting the emulator?
And when I attempt to access a web page (any web page) - I just get a blank screen. How do I resolve this?
I'm running windows 7 on a mac.
Check out the system requirements for the emulator on MSDN.
Start by updating your graphics drivers to the latest available. If that doesn't work the next step would be to upgrade the graphics card, if you can.
A PC which won't run the emulator can probably still be used to develop and debug on a real device.
It may be you're also trying to run the latest SDK 7.1 which is far more restrictive than 7.0. If you find yourself unable to run 7.1, dropping down to 7.0 may work on your particular machine.
If you are running Windows 7 on a Virtual Machine on Mac OS X it won't work because there are some restrictions on running a Virtual Machine inside a Virtual Machine.
The quick and easy solution for this is installing Windows 7 in bootcamp, it worked for me.