C# Windows Phone 8 模拟器未启动。错误代码 0x80131500

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/17488017/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-10 09:37:04  来源:igfitidea点击:

Windows Phone 8 Emulator not launching. Error code 0x80131500

c#visual-studio-2012windows-phone-8windows-8.1

提问by alunyov

I have problem with Visual Studio 2012 (OS: Windows 8.1 Preview)

我的 Visual Studio 2012 有问题(操作系统:Windows 8.1 预览版)

  1. Create empty project (Windows Phone App)
  2. Press F5 to start debugging.
  1. 创建空项目(Windows Phone 应用程序)
  2. 按 F5 开始调试。

And I get 0x80131500 error code, with no detailed description. Only this: Deployment of application to device failed.

我得到 0x80131500 错误代码,没有详细说明。仅此:将应用程序部署到设备失败。

Output:

输出:

1>------ Deploy started: Project: PhoneApp1, Configuration: Debug Any CPU ------
1>Deploying C:\Visual Studio 2012\Projects\PhoneApp1\PhoneApp1\Bin\Debu\PhoneApp2.xap...
1>Connecting to Emulator WVGA 512MB...
1>Deployment of application to device failed.
1>0x80131500

Has anyone encountered such a problem. How it can be solved?

有没有人遇到过这样的问题。如何解决?

采纳答案by Jibяa? Kha?

Windows 8.1 Previewdoes not support the Windows Phone 8 sdkto run on the Visual Studio 2012. You cannot run Emulator as well so better you should use a stable Windows 8 versionfor WP8development. This is the statement right from Microsoft Support

Windows 8.1 Preview不支持Windows Phone 8 sdkVisual Studio 2012. 您也不能运行模拟器,所以最好使用稳定版Windows 8 version进行WP8开发。这是来自的声明Microsoft Support

After you upgrade your OS to Windows 8.1 Preview, you cannot run Windows Phone 8 Software Development Kit (SDK) emulator (XDE.exe) in Microsoft Visual Studio 2012

将操作系统升级到 Windows 8.1 Preview 后,您无法在 Microsoft Visual Studio 2012 中运行 Windows Phone 8 软件开发工具包 (SDK) 模拟器 (XDE.exe)

Reference here

参考这里

回答by Nitin Patil

I'm also receving this error while simulating the program. i hav win 8 only and vs12 windows phone...

我在模拟程序时也收到此错误。我只有 win 8 和 vs12 windows 手机...

but when i serach info. regarding this error i get i have not hyper-v windows feature. try this feature you have or not and enable it..

但是当我搜索信息时。关于这个错误,我得到了我没有 hyper-v Windows 功能。试试你有没有这个功能并启用它..

Hyper-v Link : http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj863509(v=vs.105).aspx

Hyper-v 链接:http: //msdn.microsoft.com/en-us/library/windowsphone/develop/jj863509(v= vs.105).aspx

回答by user2680734

I found this is the key thing to check, as per (WP8) Emulator (XDE) Troubleshooting Tips on msdn:

我发现这是检查的关键,根据 msdn 上的 (WP8) 模拟器 (XDE) 故障排除提示:

  1. Launch the “Network Connections” manager (from the home screen, type in “View Network Connections”, It will be listed under Settings)

  2. Right click on the adapter named: “vEthernet (Internal Ethernet Port Windows Phone Emulator Internal Switch)”

  3. For that adapter, the only items that should be checked under “This connection uses the following items:” should be:

    • Client for Microsoft Networks
    • QoS Packet Scheduler
    • File and Printer Sharing for Microsoft Networks
    • Microsoft LLDP Protocol Driver
    • Link-Layer Topology Discovery Mapper I/O Driver
    • Link-Layer Topology Discovery Responder
    • Internet Protocol Version 6 (TCP/IPv6)
    • Internet Protocol Version 4 (TCP/IPv4)
  4. All other items should be unchecked.

  1. 启动“网络连接”管理器(在主屏幕中,输入“查看网络连接”,它将列在“设置”下)

  2. 右键单击名为“vEthernet(内部以太网端口 Windows Phone 模拟器内部交换机)”的适配器

  3. 对于该适配器,应在“此连接使用以下项目:”下检查的唯一项目应该是:

    • Microsoft 网络客户端
    • QoS 数据包调度程序
    • Microsoft 网络的文件和打印机共享
    • Microsoft LLDP 协议驱动程序
    • 链路层拓扑发现映射器 I/O 驱动程序
    • 链路层拓扑发现响应器
    • 互联网协议版本 6 (TCP/IPv6)
    • Internet 协议版本 4 (TCP/IPv4)
  4. 所有其他项目都应取消选中。

回答by PushCode

For some one who is looking for an answer who has the same issue while working on a virtual environment, hereis a nice article on it

对于正在寻找在虚拟环境中工作时遇到相同问题的答案的人,这里有一篇很好的文章

回答by Tomasz Syta

In my case, updating Windows Phone SDK and VS Express 2012 helped on Windows 8.1, but performance is poor. If it's helpful try installing update to VS:

就我而言,更新 Windows Phone SDK 和 VS Express 2012 对 Windows 8.1 有所帮助,但性能很差。如果有帮助,请尝试安装 VS 更新:

http://blogs.windows.com/windows_phone/b/wpdev/archive/2013/07/02/running-the-windows-phone-emulator-on-windows-8-1-preview.aspx

http://blogs.windows.com/windows_phone/b/wpdev/archive/2013/07/02/running-the-windows-phone-emulator-on-windows-8-1-preview.aspx

And updating SDK:

并更新 SDK:

http://dev.windowsphone.com/en-us/downloadsdk

http://dev.windowsphone.com/en-us/downloadsdk

回答by Der_Meister

I installed Windows Phone 8 SDK. Emulator didn't work because Hyper-V was not turned on. I installed Hyper-V from Programs & Features and got the 0x80131500 error.

我安装了 Windows Phone 8 SDK。模拟器无法工作,因为 Hyper-V 未打开。我从 Programs & Features 安装了 Hyper-V 并收到了 0x80131500 错误。

Visual Studio 2012 Update 4 fixed the issue.

Visual Studio 2012 Update 4 修复了该问题。

回答by user2710130

I faced the same issue. Later i was able to fix the issue by downloading and installing Visual Studio 2012 Update 4 from microsoft website.

我遇到了同样的问题。后来我能够通过从微软网站下载并安装 Visual Studio 2012 Update 4 来解决这个问题。

回答by filtercoffee

Installing Visual Studio 2012 Update 3 should fix the issue http://support.microsoft.com/kb/2864215

安装 Visual Studio 2012 Update 3 应该可以解决这个问题http://support.microsoft.com/kb/2864215

回答by Robert MacLean

Setup:Visual Studio 2013 + Windows 8.1 (no betas) + this did work
Resolution:Restart the Hyper-V service

设置:Visual Studio 2013 + Windows 8.1(无测试版)+ 这确实有效
解决方案:重新启动 Hyper-V 服务

回答by Imtiyaz Begum

Try out these steps if using VS 2012 with Windows 8.1 Pro:

如果在 Windows 8.1 Pro 上使用 VS 2012,请尝试以下步骤:

  1. Uninstall Hyper-V
  2. Reboot
  3. Install Hyper-V
  4. Reboot
  1. 卸载 Hyper-V
  2. 重启
  3. 安装 Hyper-V
  4. 重启

This should help.

这应该有帮助。