简体   繁体   English

Windows Phone模拟器无法启动

[英]Windows Phone Emulator not starting

When I run the emulator from the VS13 hangs self in "Windows Phone OS is Starting" but in Hyper-v manager is running properly and then keep getting two errors 当我从VS13运行模拟器时,在“Windows Phone OS正在启动”中挂起自我,但在Hyper-v管理器中运行正常,然后不断出现两个错误

Error : DEP6200 : Boostrapping 'Emulator 8.1 WVGA 4 inch 512MB' failed. 错误:DEP6200:Boostrapping'模拟器8.1 WVGA 4英寸512MB'失败。 Device cannot be found. 无法找到设备。 App deployment failed. 应用部署失败。 Please try again. 请再试一次。

Error : DEP6100 : The following unexpected error occurred during boostrapping stage 'Connecting to the device': SmartDeviceException - App deployment failed. 错误:DEP6100:在boostrapping阶段“连接到设备”期间发生以下意外错误:SmartDeviceException - 应用程序部署失败。 Please try again. 请再试一次。

Help! 救命!

  1. Repair the Visual Studio 修复Visual Studio
  2. Download and install this emulator (Microsoft Emulator - Windows 10.0.26624) https://go.microsoft.com/fwlink/p/?LinkID=619310 下载并安装此模拟器(Microsoft Emulator - Windows 10.0.26624) https://go.microsoft.com/fwlink/p/?LinkID=619310

The solution is removing a duplicated route. 解决方案是删除重复的路由。

  1. List item 项目清单
  2. Run "cmd.exe" as administrator 以管理员身份运行“cmd.exe”
  3. Type "route print" 输入“route print”
  4. If you see two identical routes from 169.254.0.0 like here: 如果您看到169.254.0.0中的两条完全相同的路线,请点击此处:

Persistent Routes:
Network Address  Netmask      Gateway Address  Metric
169.254.0.0      255.255.0.0  192.168.1.47     1
169.254.0.0      255.255.0.0  192.168.1.44     1
  1. (b) Then remove both routes with "route delete 169.254.0.0" (b)然后用“route delete 169.254.0.0”删除这两条路线
  2. Remove Hyper-V (go to "programs and features") 删除Hyper-V(转到“程序和功能”)
  3. Restart system 重启系统
  4. Install Hyper-V 安装Hyper-V
  5. Restart system 重启系统

Now you can deploy and debug your windows phone project on the emulator. 现在,您可以在模拟器上部署和调试Windows Phone项目。

From my experience, the two errors you're getting have to do with two components of the Windows Phone VM. 根据我的经验,您遇到的两个错误与Windows Phone VM的两个组件有关。

For the first error, i don't know exactly what failed but it sounds like the VM image might not be working as VS is expecting, one thing you can do for this is simply open Hyper-V manager and delete the VM, when you start debugging again from VS, it will create the VM Image again according to the specifications of the device you're emulating. 对于第一个错误,我不知道到底发生了什么失败,但听起来虚拟机映像可能无法像VS期望的那样工作,你可以做的一件事就是打开Hyper-V管理器并删除虚拟机,当你从VS再次开始调试,它将根据您正在模拟的设备的规格再次创建VM Image。

But pay attention to the second error: 但要注意第二个错误:

I have had that error lots of times, but that mostly presents even if the VM is successfully launched by VS, but there is an issue communicating with it through the virtual switch that is created for it and that can be managed in Hyper-V on the virtual switches section. 我曾多次遇到过这个错误,但即使VM成功启动了虚拟机,也会出现这种错误,但是通过为其创建的虚拟交换机与它进行通信存在问题,并且可以在Hyper-V上进行管理虚拟交换机部分。

So in this case, once again, you can solve this issue by deleting the virtual switch in Hyper-V manager and VS will recreate it when you start debugging again. 因此,在这种情况下,您可以再次通过删除Hyper-V管理器中的虚拟交换机来解决此问题,VS将在您再次开始调试时重新创建它。

I'm sorry i don't have a definitive answer for you with detailed steps but deleting the virtual switches and VMs works most of the time since VS does all the configuration for you when trying again, but if that fails, check this guide at MSDN . 对不起,我没有给出详细步骤的确切答案,但删除虚拟交换机和虚拟机大部分时间都可以工作,因为VS再次尝试时会为您完成所有配置,但如果失败, 请查看本指南MSDN I hope you get it working, it is a serious pain to deal with those issues for a while when you're just trying to test your apps. 我希望你能让它运转起来,当你只是试图测试你的应用程序时,处理这些问题是一件非常痛苦的事。

There seem to be problems/conflicts with Windows Update and reboots during the setup phase of the update 2 of VS2013 bringing WP8.1. 在VS2013的更新2的设置阶段带来WP8.1时,Windows Update似乎存在问题/冲突并重新启动。

Many people have the same problem: 很多人都有同样的问题:

Can you reboot your machine, check any pending windows update, and try again? 您可以重新启动计算机,检查任何挂起的Windows更新,然后重试吗?

In my case I have resolved this issue by removing all virtual machine in Hyper V manager as suggested by this solution: https://stackoverflow.com/a/21084481/4562521 在我的情况下,我已按照此解决方案的建议删除Hyper V管理器中的所有虚拟机,从而解决了此问题: https//stackoverflow.com/a/21084481/4562521

  1. Open Hyper V Manager (click Start, point to Administrative Tools, and then click Hyper-V Manager) 打开Hyper V Manager(单击“开始”,指向“管理工具”,然后单击“Hyper-V管理器”)
  2. Delete all installed Virtual Machines 删除所有已安装的虚拟机
  3. Delete all Virtual Switches 删除所有虚拟交换机
  4. Restart system 重启系统
  5. Rerun visual studio 重新运行视觉工作室

I faced this problem many times, and the main cause is anti-virus firewall settings. 我多次遇到这个问题,主要原因是防病毒防火墙设置。

Windows phone emulator will creates virtual network adapters, and independent anti-virus firewall does not allow access to these adapters. Windows手机模拟器将创建虚拟网络适配器,独立的防病毒防火墙不允许访问这些适配器。

To solve the issue, uninstall or disable anti-virus software including windows defender. 要解决此问题,请卸载或禁用包括Windows Defender在内的防病毒软件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM