简体   繁体   English

为Visual Studio安装Hyper-V模拟器时出错

[英]Error While Installing Hyper-V emulator for Visual Studio

I have Visual Studio 2015 Community Edition on Win 10 64 bit OS. 我在Win 10 64位操作系统上安装了Visual Studio 2015社区版。

Have downloaded and tried installing Visual Studio Emulator for Android but failing with following exception. 已下载并尝试安装适用于Android的Visual Studio模拟器,但失败并出现以下异常。

[1450:1814][2016-10-01T21:56:43]e000: MUX: ERROR: Could not load file or assembly 'Microsoft.VisualStudio.Utilities.Internal.Net35, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. [1450:1814] [2016-10-01T21:56:43] e000:MUX:错误:无法加载文件或程序集'Microsoft.VisualStudio.Utilities.Internal.Net35,Version = 14.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a'或其依赖项之一。 The system cannot find the file specified. 该系统找不到指定的文件。

[1450:1814][2016-10-01T21:56:43]e000: MUX: Stack: at Microsoft.VisualStudio.Telemetry.TelemetrySessionInitializer.BuildInitializer(TelemetrySessionSettings telemetrySessionSettings) at Microsoft.VisualStudio.Telemetry.TelemetryService.get_DefaultSession() at Microsoft.Devdiv.Bootstrapper.UserFeedback.Metrics.AppInsightsStartSession(BundleInformation bundle) at Microsoft.Devdiv.Bootstrapper.UserFeedback.Metrics.Initialize(Boolean IsBackFromReboot, BundleInformation bundle, ICommand command, CommandLineArgumentsStore commandLine) [1450:1814][2016-10-01T21:56:43]i000: MUX: Ux Initialized [1450:1814][2016-10-01T21:56:43]i000: MUX: Aquiring mutex 'Global\\vsemu' with a timeout of 0 ms [1450:1814][2016-10-01T21:56:43]i000: MUX: Mutex 'Global\\vsemu' ownership: True [1450:1814][2016-10-01T21:56:43]i000: MUX: Seen existing cache mutex 'Global\\vsemu CacheMutex': False [1450:1814][2016-10-01T21:56:43]i000: MUX: Aquiring mutex 'Global\\vsemu CacheMutex' with a timeout of 60000 ms [1450:1814][2016-10 [1450:1814] [2016-10-01T21:56:43] e000:MUX:Stack:Microsoft的Microsoft.VisualStudio.Telemetry.TelemetrySessionInitializer.BuildInitializer(TelemetrySessionSettings telemetrySessionSettings),Microsoft的Microsoft.VisualStudio.Telemetry.TelemetryService.get_DefaultSession() Microsoft.Devdiv.Bootstrapper.UserFeedback.Metrics.Initialize中的.Devdiv.Bootstrapper.UserFeedback.Metrics.AppInsightsStartSession(BundleInformation包)(布尔值IsBackFromReboot,BundleInformation包,ICommand命令,CommandLineArgumentsStore命令行)[1450:1814] [2016-10-01T21 :56:43] i000:MUX:Ux初始化[1450:1814] [2016-10-01T21:56:43] i000:MUX:获取互联网'Global \\ vsemu',超时为0 ms [1450:1814] [ 2016-10-01T21:56:43] i000:MUX:Mutex'Global \\ vsemu'所有权:True [1450:1814] [2016-10-01T21:56:43] i000:MUX:看到现有的缓存互斥锁'Global \\ vsemu CacheMutex':False [1450:1814] [2016-10-01T21:56:43] i000:MUX:获取互联网'Global \\ vsemu CacheMutex',超时60000毫秒[1450:1814] [2016-10] -01T21:56:43]i000: MUX: Mutex 'Global\\vsemu CacheMutex' ownership: True [1450:1EC8][2016-10-01T21:56:43]i100: Detect begin, 15 packages [1450:1814][2016-10-01T21:56:43]i000: MUX: Wait for Detect to complete [1450:1EC8][2016-10-01T21:56:43]i000: MUX: Detection Phase -01T21:56:43] i000:MUX:Mutex'Global \\ vsemu CacheMutex'所有权:True [1450:1EC8] [2016-10-01T21:56:43] i100:检测开始,15个包[1450:1814] [ 2016-10-01T21:56:43] i000:MUX:等待检测完成[1450:1EC8] [2016-10-01T21:56:43] i000:MUX:检测阶段

Simsons , you said you're "Looking for an answer drawing from credible and/or official sources." 西姆森 ,你说你是“寻找可信和/或官方消息来源的答案。”

I've read here an answer that says: 我在这里读到一个答案:

First check if Hyper-V is enabled on your machine in "Turn Windows features on or off". 首先在“打开或关闭Windows功能”中检查计算机上是否启用了Hyper-V。 You may also need to enable the settings for this in your BIOS (VT-x and SLAT). 您可能还需要在BIOS中启用此设置(VT-x和SLAT)。

Installing the Windows 10 tools separately may be faster than re-running the full installer, https://dev.windows.com/en-us/downloads/install-dev-tools-visual-studio-2015 单独安装Windows 10工具可能比重新运行完整安装程序更快, https://dev.windows.com/en-us/downloads/install-dev-tools-visual-studio-2015

Use the "If you've already installed Visual Studio 2015 RC" option to "Add the tools", this will offer the option to add the visual studio emulator for android during setup. 使用“如果您已经安装了Visual Studio 2015 RC”选项“添加工具”,这将提供在安装过程中为Android添加visual studio模拟器的选项。

EDIT: 编辑:

Further to this, it seems that it's not possible to enable Hyper-V on my iMac 27" Late 2013 on Insider Preview Build 10074 as VT-x becomes disabled every time the machine reboots after selecting to install Hyper-V from "Turn Windows features on or off". This causes the installation to rollback after the reboot, very frustrating! 除此之外,似乎无法在我的iMac 27“2013年晚些时候在Insider Preview Build 10074上启用Hyper-V,因为在选择安装Hyper-V后,每次机器重新启动时VT-x都会被禁用”打开或关闭“。这导致安装在重启后回滚,非常令人沮丧!

EDIT: 编辑:

This problem occurred after doing a machine refresh, however doing a full reset from the recovery options seems to have fixed the issue and have now successfully installed Hyper-V. 执行机器刷新后发生此问题,但从恢复选项执行完全重置似乎已修复此问题,现在已成功安装Hyper-V。

In this case I have not installed any of the Bootcamp software, I initiated the Hyper-V install as soon as the machine booted into the desktop environment. 在这种情况下,我还没有安装任何Bootcamp软件,一旦机器启动到桌面环境,我就启动了Hyper-V安装。

Visual Studio Community 2015 RC is currently installing, I will report back if this is also successful Visual Studio Community 2015 RC目前正在安装,如果成功,我将报告

EDIT: SUCCESS! 编辑:成功!

It is an old answer to a similar question. 这是一个类似问题的旧答案。

I hope it helps. 我希望它有所帮助。

Juan 胡安

have you an Error 0x80070666 in your log or Exception. 你的日志或异常中有一个错误0x80070666。

Like: 喜欢:

[2848:136C][2016-09-21T18:22:28]e000: Error 0x80070666: Process returned error: 0x666
[2848:136C][2016-09-21T18:22:28]e000: Error 0x80070666: Failed to execute EXE package.
[25D4:2DB4][2016-09-21T18:22:28]e000: Error 0x80070666: Failed to configure per-machine EXE package.

If yes, you have a Problem with Visual C++ redistributable 2015. 如果是,您有Visual C ++可再发行组件2015的问题。

remove Visual C++ redistributable 2015 (both) , repair your VS. 删除Visual C ++可再发行2015(两者),修复你的VS. Try to install the Visual Studio Android Emulator again . 尝试再次安装Visual Studio Android模拟器。

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

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